By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,642 Members | 1,687 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,642 IT Pros & Developers. It's quick & easy.

HTML forms and PHP

P: n/a
Hi,

As part of a group project I have been assigned to research how PHP can be
used with HTML web forms. What I need to know is, is it possible to
automatically fill in a web form using a PHP script? i.e. Fill in the text
boxes, and such with information passed in to the PHP script.

Please let me know any information you have on this, it will be greatly
appreciated...

Thanks

Chris Pook
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Assuming you're talking about something editing previously submitted
data through a form (e.g., edit a profile), sure that's possible with
any scripting language I'd say. Basically it's

<?
$a = $someinfo; //say this came from a mysql query
?>
<form>
<input type="text" name="a" value="<?=$a?>">
....
</form>

I'm sure you can Google for php form fill or something and find a more
expansive explanation ...
"Chris Pook" <cb********@blueyonder.co.uk> wrote in message news:<21***********@news-binary.blueyonder.co.uk>...
Hi,

As part of a group project I have been assigned to research how PHP can be
used with HTML web forms. What I need to know is, is it possible to
automatically fill in a web form using a PHP script? i.e. Fill in the text
boxes, and such with information passed in to the PHP script.

Please let me know any information you have on this, it will be greatly
appreciated...

Thanks

Chris Pook

Jul 17 '05 #2

P: n/a
On Thu, 06 Nov 2003 23:41:49 +0000, Chris Pook wrote:
Hi,

As part of a group project I have been assigned to research how PHP can be
used with HTML web forms. What I need to know is, is it possible to
automatically fill in a web form using a PHP script? i.e. Fill in the text
boxes, and such with information passed in to the PHP script.

Please let me know any information you have on this, it will be greatly
appreciated...

Thanks

Chris Pook

Yes it is possible. You will find a number of books, either at the local
bookstore or at amazon.com, from which you can quickly learn how to
create web pages using PHP. My personal favorite is David Tansley's
Create Dynamic Web Pages Using PHP and MySql (naturally YMMV).
Jul 17 '05 #3

P: n/a
"Chris Pook" <cb********@blueyonder.co.uk> wrote in
news:21***********@news-binary.blueyonder.co.uk:
Hi,

As part of a group project I have been assigned to research how PHP
can be used with HTML web forms. What I need to know is, is it
possible to automatically fill in a web form using a PHP script? i.e.
Fill in the text boxes, and such with information passed in to the PHP
script.


That's one of the many powers of PHP...

For example:

< form .... >
< input type=text size=50 name=textbox1 value="<?php echo $valueforbox
?>">
.... other input and submit lines ...
< /form >

You can also call a php function to get the info out of file or database.

Ken Robinson
kenrbnsn (at) rbnsn (dot) com
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.