hey all, im trying to get a window to pop up after someone submits a form.
i echo a variable in the body tag like so:
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bottommargin="0" <?=$body_load?>>
so then i fil lthat variable $body_load like this:
$RowNam[$i] = 'body_load';
$RowTxt[$i] = "onLoad=\\"javascript:popUp(\'40/new_user_info.php?PHPSESSID=" . $PHPSESSID . "\')\\"";
this look a little funny coz i have made a form generated but when vied by HTML it comes out as a hidden varible like this:
<input name="body_load" type="hidden" value="onLoad=\"javascript:popUp(\'40/new_user_info.php?PHPSESSID=b161b3c6c45c3aff03af195e2f2a7b77\')\"">
now when the form is submitted i would expect that variable to then be echoed into the body tag up there miunus the '\'s which are there to keep the javascript sweet.
but what happens is it echos like this:
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bottommargin="0" onLoad=\>
this is really fustrating me and any help would be greatly appreachiated!!! cheers