Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Example: 1
- <html>
- <form action='GET_Variable_1.php' method='POST'>
- <input type='text' name='myname' ><br />
- <input type='submit' value='Click here' />
- </form>
- <?php
- $name =$_POST['myname'];
- if ($name)
- echo "Hellow, $name."
- ?>
- </html>
- Example: 2
- <html>
- <form action='POST_Variable_1.php' method='POST'>
- <input type='text' name='myname' ><br />
- <input type='submit' value='Click here' />
- </form>
- <?php
- $name =$_POST['myname'];
- if ($name)
- echo "Hellow, $name."
- ?>
- </html>
- Example: 3
- <html>
- <form action='POST_Variable_3.php' method='POST'>
- <input type='password' name='password' ><br />
- <input type='submit' value='Click here' />
- </form>
- <?php
- $name =$_POST['password'];
- if ($name)
- echo "Thanks for your password."
- ?>
- </html>
- Example: 4
- <html>
- <form action='POST_Variable_4.php' method='POST'>
- <input type='password' name='password' ><br />
- <input type='submit' value='Click here' />
- </form>
- <?php
- $password =$_POST['password'];
- if ($name)
- echo "Thanks for your password. $password"
- ?>
- </html>
- Example: 5
- <html>
- <form action='POST_Variable_5.php' method='POST'>
- <input type='password' name='password' ><br />
- <input type='submit' value='Click here' />
- </form>
- <?php
- $password =$_POST['password'];
- if ($password)
- echo "Thanks for your password. $password"
- ?>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment