Use tag with a map

The <form:options> tag supports what you want right out of the box, using the items attribute. You can do something like this: And so on. Then in your form: That will be rendered to something like:

Why use $_SERVER[‘PHP_SELF’] instead of “”

The action attribute will default to the current URL. It is the most reliable and easiest way to say “submit the form to the same place it came from”. There is no reason to use $_SERVER[‘PHP_SELF’], and # doesn’t submit the form at all (unless there is a submit event handler attached that handles the submission).

jQuery AJAX submit form

You can use the ajaxForm/ajaxSubmit functions from Ajax Form Plugin or the jQuery serialize function. AjaxForm: or ajaxForm will send when the submit button is pressed. ajaxSubmit sends immediately. Serialize: AJAX serialization documentation is here.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)