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

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -