Jump to content

Fill form out based on drop down selection


edgarasm

Recommended Posts

Hello 

 

I was wondering how could i autofill a form based on a drop down list using raw php and mysql .

I know that the connection to database would have to be established but what next ?

Any Pointers would be helpful :) 

 

Also check the attached photo to maybe understand more than I'm explaining 

post-166214-0-97648200-1385468667_thumb.png

Link to comment
Share on other sites

If you don't want the page to reload, you'll need to use something like JavaScript to populate the fields based on a drop-down selection. If you need to pull information from a database, you could use AJAX to connect with a PHP script. Or you could look into pre-loading the information into JavaScript.

 

What in the form are you trying to auto fill?

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.