Hello, all.
PHP SCRIPTING HELP, HOPEFULLY SIMPLE...
Happy New Years to everyone! I have a question though, if one of you could share your PHP scripting knowledge to help me figure this one out.
I don't know how hard this might be, but this is what I am trying to do:
So I have a php file called js.php.
I want to make it so that I call a javascript prompt and it asks me "What is your name?".
How do I make it so that when it asks me the question, I type in Jeff, and then PHP echos the results. I know how to do this in a javascript way - document.write...
But how do I call the function and display the answer in the PHP File?
This is very important right now, and this is what I have so far:
This calls that prompt, but how do you display the answer?
Thanks,
Jeff
PHP SCRIPTING HELP, HOPEFULLY SIMPLE...
Happy New Years to everyone! I have a question though, if one of you could share your PHP scripting knowledge to help me figure this one out.
I don't know how hard this might be, but this is what I am trying to do:
So I have a php file called js.php.
I want to make it so that I call a javascript prompt and it asks me "What is your name?".
How do I make it so that when it asks me the question, I type in Jeff, and then PHP echos the results. I know how to do this in a javascript way - document.write...
But how do I call the function and display the answer in the PHP File?
This is very important right now, and this is what I have so far:
PHP:
<?php
$prompt = "<script language=\"JavaScript\">\n
prompt(\"What is your name?\");\n
</script>";
echo $prompt;
?>
This calls that prompt, but how do you display the answer?
Thanks,
Jeff