RE: [PHP] Put value directly into form?

2001-08-14 Thread Maxim Maletsky

again,

a simple HTML/PHP is enough.

page 1:

form

page 2

the same form and in the input fields use value attributes.
i.e: input type=text name=title size=20 value=?=$title?

if the form was not submitted then $title will be empty and will show
nothing, while if Title was submitted it will then reappear on the next page
(which is obviously as same as the one before)


Cheers,
Maxim Maletsky
www.PHPBeginner.com


-Original Message-
From: Phil Latio [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 1:14 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Put value directly into form?


How can I directly put values into a form instead having to create hidden
fields and drag the data from them?

You can see what I mean at:

http://www.yorkshire-search.co.uk/links/add.php3

Would a javascipt function be any use to me?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Put value directly into form?

2001-08-13 Thread Phil Latio

How can I directly put values into a form instead having to create hidden
fields and drag the data from them?

You can see what I mean at:

http://www.yorkshire-search.co.uk/links/add.php3

Would a javascipt function be any use to me?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Put value directly into form?

2001-08-13 Thread Dave Freeman

On 14 Aug 01, at 5:14, Phil Latio wrote:

 How can I directly put values into a form instead having to create hidden
 fields and drag the data from them?
 
 You can see what I mean at:
 
 http://www.yorkshire-search.co.uk/links/add.php3

Looks to me like they're still using the form to process info.  If you mean 
getting information into the various fields then you'll need something like 
this:

input type=text name=sometext value=sometexthere size=30 
maxlength=100

The 'value=' bit will insert the information into the form field when it outputs 
to the browser.  There's similar constructs for every form tag available.  
Find yourself a reasonable form tutorial and it'll no doubt cover this sort of 
thing.

The php to do it is pretty much up to you - in the case of the site above 
they're going away and reading the web site for you.

 Would a javascipt function be any use to me?

I guess you could.  That's not the way that the web site you refer to is 
doing it.

CYA, Dave


---
Outback Queensland Internet - Longreach, Outback Queensland - Australia
http://www.outbackqld.net.au  mailto:[EMAIL PROTECTED]
---

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]