hi any tot?
Only the same, if it’s the same code for both the initial form and the confirmation page, how can it be producing a different output?
this is making so
<option value="' . $row['car_id'] . '" ' . $selected . '>' .$row['car'] . '</option>
is there a way to add a reg or an id or something or javascript that when it looks like this
<option value="' . $row['car_id'] . '' . $row['car'] . '" ' . $selected . '>' .$row['car'] . '</option>
using an id to surround what u want to be inserted into the database , i mean only display it but only submit the one surround by id=?
The only thing that gets submitted to the form handler in the first bit of code is $row['car_id'] - the content of the value parameter. In the second bit of code, you submit car_id and car because they’re both in the value parameter.
One thing to ask - how is your form submitted? Is it a traditional POST or GET, or is it handled by JavaScript? I’m wondering whether the JavaScript is picking up something that isn’t wanted.
hi its a post and no javascript in involved
OK, then in this code:
<option value="1">Audi</option>
all that will be submitted is the value 1. So the mystery is why your code seems somehow to be submitting something else.
When you right-click and view the source of the initial page (specifically the option tag you’re having trouble with), and the confirmation page, how do they differ?
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.