Re: transferring data from .php to <form>'s in an .html file
| From: | 1LT John W. Holmes | Date: | Fri, 22 Nov 2002 14:22:11 +0000 |
| Subject: | Re: transferring data from .php to <form>'s in an .html file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-125613@lists.php.net to get a copy of this message | ||
> What combination of functions do I have to use to automatically redirect
> to an .html page (with <form>'s inside), while carrying a variable that
> would be automatically put into one of the <input> boxes, just like a
> predefined "value" would?
Can't do it unless your page "form" page is .php so you can execute some PHP
commands in it, or you're using PHP to write the entire .html page with the
default values.
If you use .php pages for both, then you can just pass the values in the URL
www.page.com/page.php?name=john
and use
<input type="text" name="name"
value="<?=$_GET['name']?>">
---John Holmes...