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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.