alright so i have a html form inside a php file and i want it to check a cerain text box in the form to see if they typed in a certain word
something sorta like
<form action='index.php' method='POST'>
<table>
<tr>
<td>
Name:
</td>
<td>
<input type='text' name='name' value='<?php echo $name ?>'>
</td>
</tr>
</table>
and then when it checks this on index.php
i want it to check that name IS and ONLY is bob (per-say)
and if it is then allow it to submit
if you somewhat know PHP i think you know what i mean
thanks for the help
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
oops sorry, there is a submit, this is the whole source if you want it
<?php
echo "<h1></h1>";
$submit = $_POST['submit'];
//form data
$name = strip_tags($_POST['name']);
$username = strtolower(strip_tags($_POST['username']));
$password = strip_tags($_POST['password']);
$retypepassword = strip_tags($_POST['retypepassword']);
$date = date("Y-m-d");
if ($submit)
{
//open database
$connect = mysql_connect("localhost","root","");
mysql_select_db(phplogin); //select database
$namecheck = mysql_query("SELECT username FROM users WHERE username='$username'");
$co
something sorta like
<form action='index.php' method='POST'>
<table>
<tr>
<td>
Name:
</td>
<td>
<input type='text' name='name' value='<?php echo $name ?>'>
</td>
</tr>
</table>
and then when it checks this on index.php
i want it to check that name IS and ONLY is bob (per-say)
and if it is then allow it to submit
if you somewhat know PHP i think you know what i mean
thanks for the help
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
oops sorry, there is a submit, this is the whole source if you want it
<?php
echo "<h1></h1>";
$submit = $_POST['submit'];
//form data
$name = strip_tags($_POST['name']);
$username = strtolower(strip_tags($_POST['username']));
$password = strip_tags($_POST['password']);
$retypepassword = strip_tags($_POST['retypepassword']);
$date = date("Y-m-d");
if ($submit)
{
//open database
$connect = mysql_connect("localhost","root","");
mysql_select_db(phplogin); //select database
$namecheck = mysql_query("SELECT username FROM users WHERE username='$username'");
$co