Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Sep 2007
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hidden Values for selections on Form

    This part of the form is on the page before an "else" statement.

    PHP Code:
    <select name=flag_rule>
    <
    option value=0>-- Please select --
    <
    option value=1>Yes        
    <option value=2>No            
    </select
    This part of the form is near the submit button after the "else" statement.

    PHP Code:
    <input type="hidden" name="flag_rule" value="What goes here"
    If I have a hidden value to be posted, what would go into the value for the hidden type to make the users section enter into the database.

    If they select the value 1 or 2 what would my hidden type value be to post the choice they selected to my sql database.

    Thank you in advance.

  • #2
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,642
    Thanks
    2
    Thanked 405 Times in 397 Posts
    1 or 2


  •  

    Posting Permissions

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