adam291086 Posted August 22, 2008 Share Posted August 22, 2008 i have this little php function function confirm($msg) { echo "<script langauge=\"javascript\">prompt(\"".$msg."\");</script>"; }//end function $msg = "File Name"; $a = confirm($msg); echo $a; ?> The prompt happens wounderfully. Now i want to take the value that the user inputs into the text box and sets it as a variable within my php scrip Link to comment https://forums.phpfreaks.com/topic/120851-solved-php-and-javascript/ Share on other sites More sharing options...
kenrbnsn Posted August 22, 2008 Share Posted August 22, 2008 Javascript runs after PHP has finished. There is no interaction between them, unless you use AJAX, even then when you use AJAX a new instance of your script is invoked. Ken Link to comment https://forums.phpfreaks.com/topic/120851-solved-php-and-javascript/#findComment-622974 Share on other sites More sharing options...
adam291086 Posted August 22, 2008 Author Share Posted August 22, 2008 yeah i thought that would be the answer. Thanks Link to comment https://forums.phpfreaks.com/topic/120851-solved-php-and-javascript/#findComment-622982 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.