Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199901

[PHP3] pass text field data through get method? From: sam1600 <email protected>
Date: 01/31/99

Hello,
Is it possible to pass the contents of
a text or TEXTAREA field along with a
url get method ?

I want to pass the value of a text field
to a php page no mater what link the
visitor clicks.

I don't want submit buttons, JavaScript
or frames.

<FORM>
<INPUT NAME="thetxt" TYPE="text" SIZE="25">
<A HREF="http://blah/process_page.php3?page=page1&text=<? echo $thetxt;?>">page1 link</A>
<A HREF="http://blah/process_page.php3?page=page2&text=<? echo $thetxt;?>">page2 link</A>
<A HREF="http://... this link, that link and so on.
</FORM>

Maybe this better explains it:

I wish to put a TEXTAREA on a page and I want
to user to be able to enter text but not
have to click a submit button.

I would like the text data submitted
automagically once they click on any
other link on the page.

I'm thinking that all the links on the
page will bring them to the same php
script page that will process the text field
data then redirect them to the page which
they requested.

I guess I could make each link a form but
then I'd have to either use the ugly submit
button or an image which doesn't change the
curser appearance on mouseover.

The basic problem I see is the variable
$thetxt ( in the above simple example)
is not being set.

I realize there is no action in the
above form... I just want that text
variable ;-)

Any ideas?

Thanks in advance.
-Sam

----------------------------------------------------------------
Get your free email from AltaVista at http://altavista.iname.com

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev-list-admin <email protected>