Welcome to WebmasterWorld Guest from 54.159.246.164

Forum Moderators: brotherhood of lan & mack

Message Too Old, No Replies

PHP scripts for Sql Database Query

Need Script

   
1:27 pm on Nov 16, 2009 (gmt 0)

5+ Year Member



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 .

Thank's

Gajendra

3:31 pm on Nov 16, 2009 (gmt 0)

WebmasterWorld Senior Member demaestro is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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.

<form action="/process_registration.php">
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

$POST['first_name']

$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

7:14 pm on Nov 16, 2009 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Try W3C Schools [w3schools.com] which will get you up and running in a very short time.

mySQL documentation [dev.mysql.com] for setting up the database.