<INPUT type=hidden value="<? echo $var2; echo $var2;?><br><br>" name="body"></FORM> Code (markup): The variable, $var2 , contains html which uses the " tags and is closing the data area for the value tag and executing the rest of the html early, and I can't change the " s to ' inside my html code because it will not work then. Any suggestions? Thanks.
<INPUT type=hidden value="<? echo $var2 . htmlentities($var2);?><br><br>" name="body"></FORM> or <INPUT type=hidden value='<? echo $var2 . $var2 ;?><br><br>' name='body'></FORM>
htmlentities seems to distort my html code a bit, turning some quotes into a box with uot after it. Other then that, it works perfect. Is there any solution to this? thanks