vapour_ Posted June 7, 2008 Share Posted June 7, 2008 Hey, im in a bit of a muddle. I am trying to use hidden fields to store data (mostly text) for use on another page. Its working fine but when i tried putting DIV tags into the hidden fields (including text) they freaked out and just spat out the data into the html code. Is there any way to stop this happening? Quote Link to comment Share on other sites More sharing options...
MiCR0 Posted June 7, 2008 Share Posted June 7, 2008 I do not know what use a Div tag in a hidden field for however you could use 1 more hidden with a number in it which u can ref in your code to use a div tag like. function addDivTags($ID,$input) { $tags[1] = '<div align="right">'.$input.'</div>'); $tags[2] = '<div align="left">'.$input.'</div>'); return $tags[$ID]; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.