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> Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Lee-Bartlett Posted November 17, 2008 Author Share Posted November 17, 2008 nvm sorted. ty Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.