Jump to content

verify a value-survey


shambala

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/78122-verify-a-value-survey/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.