I have a little logging taking place and i want the user to see the resualts in a popup when they click a button (a button because i have to send the resaults to the display page)
echo ("<br><form action=\"javascript:popUp('log.php');\" method=\"post\">
<input type=\"hidden\" name=\"logtext\" value=\"$logtext\">
<input type=\"submit\" value=\"View Log\"></form>");
doesnt work.. the popup pops up, but i get an error. i have tested the popup generater and it works.. i have tested the form with out the popup and it worked. but if i put them together, no go... is there a correct way to do this?
--edit-- this code is getting messed up by the forums... so heh, if it looks tottally stupid (like smilie links and stuff) its not my fault!
why is it putting spaces in "javascript"?