473,402 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

HTML forms and PHP

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
3 2944
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
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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Bob Nolty | last post by:
Hi all -- I'm trying to create a hidden form in the document using only Javascript -- I don't know what form I want until the user clicks a button -- I tried the following code, which does...
4
by: VK | last post by:
09/30/03 Phil Powell posted his "Radio buttons do not appear checked" question. This question led to a long discussion about the naming rules applying to variables, objects, methods and properties...
22
by: Luke | last post by:
Elements with name attribute: form, input, textarea, a, frame, iframe, button, select, map, meta, applet, object, param, img (if you know more reply...) Methods of addresing html elements:...
2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
6
by: William F. Zachmann | last post by:
We've got a project going that involves moving an old web site with a massive dll written in C++ that produces most of the output from a SQL 7.0 data base on NT4 onto IIS on Windows 2003 Server...
4
by: Sathyaish | last post by:
I am no JavaScript progammer, and unfortunately am having to babysit an old code base that has a lot of JavaScript in it. I have two questions: (1) Can two HTML controls have the same name? It...
5
by: nick | last post by:
I need to create a simple asp.net application that use password protect some html pages. The html page provider doesn't know asp.net. And the host doesn't allow me to create user accounts. ...
7
by: thersitz | last post by:
I can't seem to get my html form to submit properly from within a web form. Here's my form tag syntax and some delivery hidden fields. <form id="myForm"...
19
Atli
by: Atli | last post by:
Introduction At some point, all web developers will need to collect data from their users. In a dynamic web page, everything revolves around the users input, so knowing how to ask for and collect...
1
by: since | last post by:
I figured I would post my solution to the following. Resizable column tables. Search and replace values in a table. (IE only) Scrollable tables. Sortable tables. It is based on a lot...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.