Forum Moderators: coopster
Please help me to do this.
I want to make a form that would redirect to a php page and fill with the keyword entered into a part of the script that is embedded on the page to be redirected to.
example of page to be redirected to:
<?php
require_once'/home/mzec/public_html/script/script.php';
command('blank');
?>
I would like to fill the blank with the keyword entered in the form.
Thanks a lot.
Do you just want to include a value of a variable, which was submitted with the form?
If so, use $_GET['name'] or $_POST['name'] depending on the form method (post or get), or just $name (if supported, although that might be less safe in some cases).
So that would be, for example:
command($_GET['name']);
If this is not what you mean, what do you mean?
Arno
What I mean is that when I click the form, which is an html page, it will go to a php page (with the above code)then fill the blank with the keyword entered. Is your example above do this? I'm sorry, I really don't know php. I'm just trying to do some work around in an open source script.
Thanks
You may find this page (and continued pages) useful:
[php.net...]