
- Forum
- Programming Talk
- PHP
- PHP Array passing from Html to PHP
PHP Array passing from Html to PHP
This is a discussion on PHP Array passing from Html to PHP within the PHP forums, part of the Programming Talk category; Hello everybody, How to pass an html array to PHP array...
-
PHP Array passing from Html to PHP
Hello everybody,
How to pass an html array to PHP array
-
You can pass using javascript
1. Create a PHP array variable.
2. Create a javascript function which takes in array variable index as a parameter
3. You can retrieve the value of the said array index using the statement
variable = documents.forms[0].elements['var[]'];
4. Make the javascript function to return the value of the retrieved array variable.
5. In PHP code assin the javascript function value to required array variable.

Reply With Quote





