Welcome to WebmasterWorld Guest from 126.96.36.199 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
PHP scripts for Sql Database Query Need Script gajendrasaini 06
Hi Every body i am a fresher in php and sql .I want when a user fill a registeration form and submit . All information will sent to my database. and he will redirect to a page named profile page. in this page his all information submitted by him and a unique username and password will published.
please help me. how can i do it.
please tell me full detail. i am a completly new in this .
gajendrasaini welcome to WebmasterWorld.
What you are asking is not something that can just be explained in full detail without teaching you some basic things.
I suggest you take this one step at a time.
First you need to create and HTML form that has all the registration data you want. In the form tag you want it to post to a php page that will do some processing.
First name <input type="text" name="first_name"> </form>
Then the process_registration page takes the form data and puts it into a sql insert statement
$sql="insert into user_reg (first_name) values (" + $POST['first_name'] + ")"
Execute the query... once you have it inserting data from the form post back and we can work on step 2
Try which will get you up and running in a very short time. W3C Schools [ w3schools.com] for setting up the database. mySQL documentation [ dev.mysql.com]