Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderators: ArturoRobles, ArturoRobles

Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
#827848
I have a dropdown control that's populated using SQL and a dependent field.
The user selects a valid option and submits the form. The selected value is stored to the variable. Down the line, the form gets reassigned back to the initial user and retrieves that stored value so it defaults to that value on the control.

However, the SQL that generated the options in that dropdown control should generate new options. (This won't get activated unless they user actually clicks on the dropdown control). If the user leaves the control alone, and presses submit, there is no error even though the saved option is now invalid.

How do I make it so that on submit, it checks the control to make sure that the old value is still valid now?

The 500 Internal Server Error is the general catch[…]

Really very nice blog information for this one and[…]

This is a long, lengthy and cumbersome process. T[…]

Great read for when on the road. The book provides[…]