Lee-Bartlett Posted November 17, 2008 Share Posted November 17, 2008 On my site the user fills out a form, when that form is filled out it submits to my database, i need, when that form is submited, a secret answer of no with it. this is then used for admin reasons. I tried this but it sadly didnt work <td><input type="hidden" name="no" id="no" value="<? $_POST["approve"] == "no"; ?>"></td> Link to comment https://forums.phpfreaks.com/topic/133113-solved-attaching-little-bit-of-php-to-a-form/ Share on other sites More sharing options...
graham23s Posted November 17, 2008 Share Posted November 17, 2008 you could do: <td><input type="hidden" name="no" id="no" value="no"><td> then grab it: $no = $_POST['no']; like so Graham Link to comment https://forums.phpfreaks.com/topic/133113-solved-attaching-little-bit-of-php-to-a-form/#findComment-692267 Share on other sites More sharing options...
Lee-Bartlett Posted November 17, 2008 Author Share Posted November 17, 2008 I just tryied that, but i changed the no in the [] to approve, thats the collum name in the database, have i done it wrong somthing so simple im finding hard. Link to comment https://forums.phpfreaks.com/topic/133113-solved-attaching-little-bit-of-php-to-a-form/#findComment-692277 Share on other sites More sharing options...
Lee-Bartlett Posted November 17, 2008 Author Share Posted November 17, 2008 nvm sorted. ty Link to comment https://forums.phpfreaks.com/topic/133113-solved-attaching-little-bit-of-php-to-a-form/#findComment-692285 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.