SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 28 of 28
  1. #26
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  2. #27
    SitePoint Zealot trigger8's Avatar
    Join Date
    Nov 2000
    Location
    Dallas, TX
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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!

  3. #28
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •