RE: [PHP] submit form witout clilck submit button
| From: | Ankur Verma | Date: | Tue, 27 Mar 2001 07:55:37 +0000 |
| Subject: | RE: [PHP] submit form witout clilck submit button | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-45704@lists.php.net to get a copy of this message | ||
you can do this using Javascript
place this in your HTML code
<HTML>
|
|
Head title and the other stuff
|
|
<BODY OnLoad="javascript:document.forms[0].submit();">
|
|
Continue with the HTML Code
|
|
</Body>
</Html>
This will cause the form to be sumitted as soon as the page completes up
loading
hope that helps
regards
Ankur Verma
NetCentric Division
HCL Technologies
Noida, Uttar Pradesh
India
-----Original Message-----
From: Jacky [mailto:jacky@activelifestyle.com]
Sent: Wednesday, March 28, 2001 1:56 AM
To: php-general@lists.php.net
Subject: [PHP] submit form witout clilck submit button
Hi all
I have to submit username, domain name and password values to the cgi file,
It starts from the login page and submit values to a php page to tie up
username and domain name value together before submit it to the cgi file as
two values ( "username+domainname" , "password") .
The thing is that at php file, how do I submit those values without user
click on the submit button, say make the form submit right away as soon as
the page is read?
Jack
jacky@activelifestyle.com
"There is nothing more rewarding than reaching the goal you set for
yourself"