Re: Put value directly into form?

From: Date: Tue, 14 Aug 2001 05:44:43 +0000
Subject: Re: Put value directly into form?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-62571@lists.php.net to get a copy of this message
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:dfreeman@outbackqld.net.au -----------------------------------------------------------------------

« previous php.general (#62571) next »