Need help with code for my cost generator., Can't get code to input value and next page |
Need help with code for my cost generator., Can't get code to input value and next page |
geoffmerritt |
Mar 26 2009, 04:49 AM
Post
#21
|
Member Group: Members Posts: 66 Joined: 23-December 08 From: Adelaide Member No.: 7,394 |
Sean
QUOTE I have a feeling something needs to be adjusted here: <select name="select"> <option value="<?=$servvalue ?>" selected="selected"><?=$serv ?></option> <option value="1">Standard - 3 Day/72 Hour Return - $5.00 Per Page</option> <option value="2">Expedite - 2 Day/48 Hour Return - $7.50 Per Page</option> <option value="3">Overnight - 1 Day/24 Hour Return - $9.00 Per Page</option> The above code will always double display the selected item, the code was written quickly. The user of the page made a choice in the previous page, is there a need for the user to have the option of the same choices on this page, would it not be better to have a confirmation page, and if they need to edit..... send them back to the previous page to change their selection thus making the above code redundant. You have a mix of javascript and php over the couple of pages, if it was my page I would look at using php sessions to store variables that can be used from page to page. The session variable would be named on the first page, and the variables can be called on the subsequent pages, no need for GET or POST commands and IF statements. Good Luck. |
Lo-Fi Version | Time is now: 23rd April 2024 - 06:56 AM |