Jump to content

Loading form info on page load.


acctman

Recommended Posts

I have three questions, first one involves loading/retrieving info to a Form when a user loads the page and the second is Updating and Inserting data back into a db. I believe there is a mysql code that will Update or Insert all in one shot. Last question is how not to lose data when a submit error happens.

 

1. I have a .tpl (html and php code) file that has a form I need to retrieve all values from a database and display into form when user loads page.

 

2. When user submits changes Updates and new Inserts what would be the php sql code to use.

 

3. If user leaves a set field blank how can I error the submit without clearing all the data? Is there a way to do it with ajax/dhtml or php code.

 

thanks in advance

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.