Jump to content

prompt for completion


eco

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.