Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am trying to make my registration form to be able to put the users information into the databases table but i dont know how i tried different wa but i cant get it to work. If someone would provide code for me that would help a lot :). This is my code:

PHP
<?php
include("db.php");
?>
<?php
$username = $_REQUEST['username'];
$password = $_REQUEST['password'];
$password2 = $_REQUEST['password2'];
$email = $_REQUEST['email'];
$submit = $_REQUEST['submit'];

$sql = "SELECT * FROM `users`";

if($submit == true) {
	echo" Thanks for signing up";
} else {
	echo"Something went wrong";
}

?>
Posted
Comments
Mohibur Rashid 4-Oct-15 22:22pm    
I will ask you to learn more. You have done nothing to ask a proper question. You just have uploaded random codes and asking for help.
Member 10906424 4-Oct-15 22:23pm    
I already have it
Mohibur Rashid 4-Oct-15 23:39pm    
What do you have already?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900