shambala Posted November 20, 2007 Share Posted November 20, 2007 I have a index page that asks for the Lawson Number and a submit button: <html> <body> <form action="vote.php" method="post"> Lawson Number: <input type="text" name="lnumber" /> <input type="submit" /> </form> </body> </html> It goes to vote.php for the scripts, I have a table already made with all the numbers that will be used in it, and a used column set to 0. When the user types in their lawson number I want this script to check to see if they have voted or not, if the used value is 0 then I want it to redirect to a certai page and make the value a 1, and if the value is already a 1 because they voted once already then it redirects to a different page. This is what I have so far: <?php $con = mysql_connect("localhost","root","****"); ?> If someone could help me make this happen it would help me a lot. 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.