javascript - Is it possible to make HTML code on a page a PHP variable? -



javascript - Is it possible to make HTML code on a page a PHP variable? -

i have table gets rows value of inputs in form submitted on previous page.

example input be:

<input id="somepath/12345.jpg" class="1" type="hidden" value="<tr class='order'> <td class='imgsrc'>somepath/12345.jpg</td> <td class='imgsize'>4x6</td><td class='imgcount'>1</td> </tr> <tr></tr>" name="order[]">

i using javascript add together cost, shipping, etc rows in table, adding additional rows. there anyway me reference newly built table variable email using php's mail() function?

or need go drawing board?

from title: can't.

however think input value wrong, should htmlspecialchared

$your_var = '<input id="somepath/12345.jpg" class="1" type="hidden" value="'.htmlspecialchars(<tr class=\'order\'><td class=\'imgsrc\'>somepath/12345.jpg</td><td class=\'imgsize\'>4x6</td><td class=\'imgcount\'>1</td></tr><tr></tr>').'" name="order[]">'; echo $your_var;

php javascript table variables

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -