homepage Welcome to WebmasterWorld Guest from 23.23.22.200
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / WebmasterWorld / New To Web Development
Forum Library, Charter, Moderators: brotherhood of lan & mack

New To Web Development Forum

    
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 .

Thank's

Gajendra

 

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.

<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

rocknbil




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

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / New To Web Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved