I have an issue here.
There is a link "My plan" in the php page1. On clicking this link directs to a form which has some entries that has to be filled by the user.And once the user fills the form and clicks the submit button the entries will be stored in the database.
What I need is, when the user fills the form and submits the form once all the form elements should be disabled. If the user again clicks the "My plan" link, the form elements should be disabled. I know that this can be done by recognizing the user_id, since this will be unique. But how exactly can I do this. Here is the code I am using,
test1.php
Expand|Select|Wrap|Line Numbers
- <body>
- <?php
- $userid="45367";
- echo "<a href='test2.php?userid=$userid'>My plan</a>";
- ?>
- </body>
- </html>
Expand|Select|Wrap|Line Numbers
- <html>
- <body>
- <?php
- $userid = $_GET['userid'];
- ?>
- <form name="form1" action="test3.php" method="post">
- Name : <input type="textbox" name="name">
- Age : <input type="textbox" name="age">
- Sex : <input type="checkbox" name="sex">
- <input type="submit" value="GO">
- </form>
- </body>
- </html>
WIth regards