> I want to write php script that fill out HTML form online. Any ideas
> how to do it?
>


If you have a form such as this:

<form method="post" action="index.php">
<input type="text" name="line1" value="Testing One">
<input type="text" name="line2" value="Testing Two">
</form>

You would see two text lines filled in with Testing One and Testing Two.
So replace the value with whatever data you're gathering from PHP.

<form method="post" action="index.php">
<input type="text" name="line1" value="<?php echo $data1; ?>">
<input type="text" name="line2" value="<?php echo $data2; ?>">
</form>

For textarea's do as such:

<textarea name="textarea1"><?php echo $phpVar; ?></textarea>

-- 
--Matthew Sims
--<http://killermookie.org>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to