Jump to content
MakeWebGames

stabs909

Members
  • Posts

    16
  • Joined

  • Last visited

stabs909's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. stabs909

    Register.php

    6 days ive been woring on the same page.
  2. stabs909

    Register.php

    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.
  3. stabs909

    Register.php

    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"; ?>
  4. stabs909

    Register.php

    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
  5. no **** with skills i could of told you that
  6. stabs909

    Register.php

    i got no clue what that is.
  7. stabs909

    Register.php

    it took me about 12 an a half hours trying to figuar out how to make a register.php page
  8. stabs909

    Register.php

    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
  9. stabs909

    Register.php

    thanks that worked :) but it no creating a users account when it registers how would i fix this
  10. stabs909

    Register.php

    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>
  11. stabs909

    Register.php

    because i have no idea where to evern start
  12. stabs909

    Register.php

    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
  13. 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.
  14. how do you make that
×
×
  • Create New...