Hello i am after creating a javascript alert box with a text input and a submit button that when the submit button is pressed the text field will save its self into a php variable that will then be inserted into the a database.
here is the code i have so far
if($Petname == '')
{ ?>
<body onload='javascript: jQuery.facebox("<div align=\"center\">Enter your pets Name: <input type=\"text\" name=\"pet\" ><br /><br /><input type=\"submit\"></div> ");'></body>
<?php }
how would i retrieve the variable from the javascript and store it into php?