Jump to content

Recommended Posts

Hi all,

 

I hope this is the right place for this post.

 

I have an application that will write data to a db but if information is missing, the user should be prompted to complete the data before being submitted to the db.

 

The prompt would originally have two combo boxes and a search field (Category, sub-category and search paten).  If a cat or sub cat does not exist, by selecting 'new' one should be prompted with a text box to add a row to the drop down.  The dropdown are picked up from the db.

 

I was thinking of using a popup for this but I think (still very much a newb so correct me if I'm wrong) a form can only send a single 'item' be it a variable or an array but not two or more.

 

I was just wondering how you would go about prompting a user for more information and then returning to the original screen in the original state it was in.

 

Thanks for any advice.

Link to comment
https://forums.phpfreaks.com/topic/209317-prompt-for-completion/
Share on other sites

An HTML form can send as many pieces of information as you want.  For each field in the form you want to get the data out of, add the 'name' attribute.  Then the php script that receives the data can that information through the $_GET (or $_POST, or $_REQUEST) superglobal array.

 

More information about forms: http://w3schools.com/html/html_forms.asp

More information about $_GET: http://w3schools.com/php/php_get.asp

 

I hope I understood your question correctly.

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.