ballhogjoni Posted May 7, 2007 Share Posted May 7, 2007 How would you pass a hidden input and make sure it is set usiing php? example: <td align="center"> <form action=""> <input type="hidden" name="too_small_lead"> <input type="Submit" value="Too Small"> </form> </td> php code $too_small_lead = $_POST['too_small_lead']; if (isset($too_small_lead)) { echo "hi I'm set"; } My problem is that it is not echoing "hi i'm set" Link to comment https://forums.phpfreaks.com/topic/50394-solved-how-do-you-pass-a-hidden-input/ Share on other sites More sharing options...
Psycho Posted May 7, 2007 Share Posted May 7, 2007 You need to give the field a value. <input type="hidden" name="too_small_lead" value="something"> Link to comment https://forums.phpfreaks.com/topic/50394-solved-how-do-you-pass-a-hidden-input/#findComment-247495 Share on other sites More sharing options...
papaface Posted May 7, 2007 Share Posted May 7, 2007 <input type="hidden" name="too_small_lead"> It has no value="something" Try: <input type="hidden" name="too_small_lead" value"something"> It should say "hi i'm set" then. Link to comment https://forums.phpfreaks.com/topic/50394-solved-how-do-you-pass-a-hidden-input/#findComment-247496 Share on other sites More sharing options...
ballhogjoni Posted May 7, 2007 Author Share Posted May 7, 2007 Nope it didnt work Link to comment https://forums.phpfreaks.com/topic/50394-solved-how-do-you-pass-a-hidden-input/#findComment-247500 Share on other sites More sharing options...
sasa Posted May 7, 2007 Share Posted May 7, 2007 <form action="" method="POST"> Link to comment https://forums.phpfreaks.com/topic/50394-solved-how-do-you-pass-a-hidden-input/#findComment-247505 Share on other sites More sharing options...
ballhogjoni Posted May 7, 2007 Author Share Posted May 7, 2007 Dude I'm a freking idiot. Thank You Link to comment https://forums.phpfreaks.com/topic/50394-solved-how-do-you-pass-a-hidden-input/#findComment-247507 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.