On the second page make a hidden input holding the name and value of the state, so when the second page gets submitted and the city gets passed to the third page the state will go along with it.
| SitePoint Sponsor |





On the second page make a hidden input holding the name and value of the state, so when the second page gets submitted and the city gets passed to the third page the state will go along with it.
Please don't PM me with questions.
Use the forums, that is what they are here for.

Is there anything wrong in this line?
print '<input type="hidden" name="state" value=" <? echo( "$state" ); ?> ';
Trigger8
**************************
I killed a 6-pack just to watch it die!





Yes you have php tags embedded inside of php a NONO
print '<input type="hidden" name="state" value="'.$state.'">';
or
printf('<input type="hidden" name="state" value="%s">', $state);
Please don't PM me with questions.
Use the forums, that is what they are here for.
Bookmarks