Welcome to WebmasterWorld Guest from 126.96.36.199 , register , free tools , login , search , subscribe , help , library , announcements , recent posts , open posts Subscribe to WebmasterWorld
PHP scripts for Sql Database Query Need Script gajendrasaini 06 msg:4025769 1:27 pm on Nov 16, 2009 (gmt 0) 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 .
Demaestro msg:4025837 3:31 pm on Nov 16, 2009 (gmt 0)
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
rocknbil msg:4026005 7:14 pm on Nov 16, 2009 (gmt 0)
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]