php3-list | 199901
Date: 01/31/99
- Next message: Rasmus Lerdorf: "Re: [PHP3] pass text field data through get method?"
- Previous message: sam1600 <email protected>: "[PHP3] pass text field data through get method?"
- Maybe in reply to: sam1600 <email protected>: "[PHP3] pass text field data through get method?"
- Next in thread: Rasmus Lerdorf: "Re: [PHP3] pass text field data through get method?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
You could try messing with JavaScript and use the onUnload method to submit
the form for you.
It would probably redirect the user to your form-post page though, unless
you got super-fancy with your javascript.
Tim
PHPBuilder.com
-----Original Message-----
From: sam1600 <email protected> <sam1600 <email protected>>
To: php3 list <php3 <email protected>>
Date: Sunday, January 31, 1999 12:34 PM
Subject: [PHP3] pass text field data through get method?
>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>
>
>
>
-- 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>
- Next message: Rasmus Lerdorf: "Re: [PHP3] pass text field data through get method?"
- Previous message: sam1600 <email protected>: "[PHP3] pass text field data through get method?"
- Maybe in reply to: sam1600 <email protected>: "[PHP3] pass text field data through get method?"
- Next in thread: Rasmus Lerdorf: "Re: [PHP3] pass text field data through get method?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

