Jump to content

[SOLVED] phpform


newtoall

Recommended Posts

Hi,

 

Short question:  Is it possible to have a php form that will be automatically populated when a user selects a value from a drop down list item.

 

Description:

I have am writting a php form that will be used to update information that already exisits on a mysql database.

 

I have set up two forms on one screen one contains a drop down list of people names and a 'get details' button. This form basically passes the id of the person the user selects on this first form back into the screen and is used by the second form to populate each field:

value="<?php echo retrive_person($person_id)->FIRST_NAME;?>"

Rather than having two forms is it possible to have one form with the fields being populate as soon as the details of the person the user selects from the drop down list.

 

 

Any help would be appreciated!

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.