Exforsys
+ Reply to Thread
Results 1 to 2 of 2

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

  1. #1
    ssandesha is offline Junior Member Array
    Join Date
    Nov 2006
    Answers
    1

    Question PHP Array passing from Html to PHP

    Hello everybody,
    How to pass an html array to PHP array


  2. #2
    lokeshm is offline Member Array
    Join Date
    Apr 2005
    Answers
    63
    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.


Latest Article

Network Security Risk Assessment and Measurement

Read More...