Jump to content

[SOLVED] php and javascript


adam291086

Recommended Posts

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

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.