PDA

View Full Version : Radio / Checkbox Combo Selection Page


samlutley
3-23-04, 02:32 PM
Having some problems with my code / logic. When the courses are set, the tours are reset and vice-versa. Could someone take a look at it and try to diagnosis my problem?

Thanks,
Sam

File Attached
Or View at http://www.utley.org/page2.php

BerksWebGuy
3-23-04, 02:35 PM
It refreshes the page everytime you hit the button because of this in every button/checkbox:

onclick="submit()"

BerksWebGuy
3-23-04, 02:36 PM
I think you only need one 'Add to Cart' button...I think thats what is messing you up.

Also when you hit 'Tour 2'...it goes to 'Tour 3'.

mitchind
3-23-04, 05:44 PM
still looking at it, but you have a couple of typos.

search for and replace... $couredisplay with $coursedisplay

Check your link http://www.engr.uga.edu/resouces/clubs/asae.html for spelling of resources.

The reason your forms are getting reset is that you're sharing the same variables names between the if blocks that check the slot and tour variables.

You should probably fill the hidden form fields with the results of the $_POST variables.