Every radio button in the group share same id. length. PHP - Keep The Values in The Form. Notice the name attribute mytext[] in input fields? Parameters. Basic Input; Cookies; Old Input; Files; Request Information; Basic Input. Note : If an external variable name begins with a valid array syntax, trailing characters are silently ignored. Prerequisites. To create a simple PHP contact form with MySQL, I assume that you have a PHP application installed on a web server. In the comment textarea field, we put the script between the tags. The input string. string. In this case, you'll want to set the name attribute of the buttons so that there's a key by which to access the value.. Additionally, in keeping with conventions, you'll want to change the type of these inputs (buttons) to submit so that they post Both GET and POST create an array (e.g. then the value of the select will be located in the super global array $_GET['taskOption'].. The system() call also tries to automatically flush the web server's output buffer after each line of output if PHP is running as a server module.. by using id = "something" and retrieve it using $('#something').val(); Capture Array Values using PHP Collecting values from above input fields is pretty simple, take a look at example below. Submit. If