Jump to content

Hidden Fields and DIV tags...help!


vapour_

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/109097-hidden-fields-and-div-tagshelp/
Share on other sites

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];
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.