-
Posts
16 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by stabs909
-
6 days ive been woring on the same page.
-
well i did post my code an it not working i think im just going to give up im sick of it i can fix it.
-
This is my register.php code. when i click register thisshows you account created sucessful but when i go to database nothing there? i dont understand <html> <title></title> <body> <center><img src="http://.photobucket.com/albums/ii513//Untitled-4.jpg" border="0" alt=".com"></a></center> <head> <style type="text/css"><!-- body {scrollbar-3dlight-color:silver; scrollbar-arrow-color:white; scrollbar-track-color:black; scrollbar-darkshadow-color:gray; scrollbar-face-color:gray; scrollbar-highlight-color:gray; scrollbar-shadow-color:black} body { background-color:#404040; } --></style> </head> </html> <p><?php echo date("F j, g:i:s a"); ?></p> <?php echo "<h3>Register here for free account</h3>"; $submit = $_POST['submit']; //form data if ($_POST['submit']) { $username = strip_tags($_POST['username']); $password = md5(strip_tags($_POST['password'])); $repeatpassword = md5(strip_tags($_POST['repeatpassword'])); echo $username; error_reporting(0); require "connect.php"; $write = mysql_query("INSERT INTO mysql_xxxxxxxxx VALUES('username','password')"); echo"<p><b>Account created sucessful</b>"; } ?> <html> <form action='register.php' method='POST'> <table> <tr> <td> Choose a username: </td> <td> <input type='text' name='username'> </td> </tr> <tr> <td> Choose a Password: </td> <td> <input type='password' name='password'> </td> </tr> <tr> <td> Repeat Password: </td> <td> <input type='password' name='repeatpassword'> </td> </tr> </table> <p> <left><input type='submit' name='submit' value='Register'> </form <p><a href='index.html'><u><b>Back to log in page</b></u></a></p> </html> this is my connect.php <?php $connect = mysql_connect("xxxxxxxx", "xxxxxxxx", "xxxxxxxx") or die ("Couldnt connect"); mysql_select_db("xxxxxxxxl") or die ("Couldnt find database"); echo "connection successful"; ?>
-
im confused. do i add my db info to mysql_query("INSERT INTO `user` (`username`, `password`) VALUES ('".$username."', '".$password."')") or die(mysql_error()); if so where
-
no **** with skills i could of told you that
-
ShizzleNizzle or WhizzBang => Paypal fraud
stabs909 replied to a_bertrand's topic in Collaboration Experiences
thats suck -
it took me about 12 an a half hours trying to figuar out how to make a register.php page
-
well trying to teach my self. so far im doing prity good for the frist time codeing i looked up w3shools.com i learned a little of there. but some times i dont understand what i need to put in
-
thanks that worked :) but it no creating a users account when it registers how would i fix this
-
ok i was a bit lazy because im still new to all this but here goes. can you help me fix it when i click submit it dont work <?php echo "<h3>Register here for free account</h3>"; $submit = $_POST['submit']; //form data $username = strip_tags($POST['username']); $password = md5(strip_tags($POST['password'])); $repeatpassword = md5(strip_tags($POST['repeatpassword'])); if ($submit) { echo $username; } ?> <html> <form action='register.php' method='POST'> <table> <tr> <td> Choose a username: </td> <td> <input type='text' name='username'> </td> </tr> <tr> <td> Choose a Password: </td> <td> <input type='password' name='password'> </td> </tr> <tr> <td> Repeat Password: </td> <td> <input type='password' name='repeatpassword'> </td> </tr> </table> <p> <input type='submit' name='submit' value='register'> </form </html>
-
because i have no idea where to evern start
-
Hi i need help once agine. i need to make a register.php can any one help me out if you can please podt here thanks
-
thanks alot its working now. i been trying to get it to work all day. i got another one for you. i want a muisc to play every time some one types in my website. but i dont want a play button or any of that stuff to show. i just want it to auto play.
-
how do you make that
-
i keep geting this error message Parse error: syntax error, unexpected T_LOGICAL_OR in /home/u571822004/public_html/login.php on line 11 this <?php session_start(); $username = $_POST['username']; $password = $_POST['password']; if ($username AND $password) { $connect = mysql_connect("xxxxxx","xxxxxxx","xxxxxxx"); or die ("Couldnt Connect To Database"); mysql_select_db("xxxxxxx") or die ("couldnt find database"); $query = mysql_query("SELECT * FROM users WHERE username='$username'" $numrows = mysql_num_rows($query); if($numrows !=0) { while ($rows = mysql_fetch_assoc($query)) { dbusername = $row ['username']; dbpassword = $row ['password']; } if ($username==dbusername&&$password==$dbpassword) { ehco "Login successful.a <href='home.php'>CLick here to go home</a>"; $_SESSION['username']=$dbusername; } else echo "incorrect password"; } else die ("echo "That username does not exist"); } else die ("Please enter a username and password ?>