design issue..
Posted: Fri Feb 22, 2008 4:19 pm
Mod | Please use
After this the remain html part is not seen, the page aligns to right, and the footer is gone.. how do I fix this?
Mod | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hey there forum,
I'm new to php, please help me out in fixing this.. I'm having a problem with user register form..Code: Select all
<form name="form1" method="post" action="<?php echo $_SERVER[PHP_SELF];?">
...............
<input type="button" name="reset" value="Reset" onclick=""/>
<input name="sbt-reg" type="submit" value="Register"/></td>
<?php
if (isset($_POST['sbt-reg']))
{
if (!$_POST['Text2']|!$_POST['pwd1']|!$_POST['pwd2'])
{
die("Required field cannot be left blank! Click back on the browser button.");
}
$usercheck = $_POST['Text2'];
$check = mysql_query("Select * from info where unm='$usercheck'") or die (mysql_error());
$check2 = mysql_num_rows($check);
if ($check2!=0)
{
die('Sorry, the username '.$_POST['Text2'].' is already in use');
}
if ($_POST['pwd1']!=$_POST['pwd2'])
{
die("Password and confirm password did not match! Click back on the browser button.");
}
$add_member = mysql_query("Insert into info(unm,psw) values ('".$_POST['Text2']."','".$_POST['pwd2']."')");
?>Mod | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]