Jump to content

need help in coding


nathanurag

Recommended Posts

In the future, I would make my forms in php, so you can have them submit to themselves and give error messages.

 

Basically you need to have your html forms submit to a php page, then that php page needs to connect to the database and insert the data. Thats the basics, in a real-world situation you would need to have the form getting the data also make sure that the user input was complete / good, and you would probably want to check and make sure not to duplicate records.

 

Go to php.net, look up mysql_connect and mysql_select_db and mysql_query, those are the only mysql functions you'll need to do this.

Link to comment
Share on other sites

In the future, I would make my forms in php, so you can have them submit to themselves and give error messages.

 

Not true, what I actually do with my forms is make them seperate files (like form_1.html) and then have them be included in a document where needed and the values are equal to $error['fieldname'] which can be made on a processor page that reincludes that form. 

 

But anyway I think for you to do what you are trying you need to initally learn the ins/outs of mysql/php interaction, get phpmyadmin on your server and start making tables

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.