HighDots Forums  

Re: Automatic form submission

alt.html alt.html


Discuss Re: Automatic form submission in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jan Faerber
 
Posts: n/a

Default Re: Automatic form submission - 10-07-2004 , 06:44 AM






BernieH wrote:

Quote:
Can anybody suggest something to ensure the 2nd page is submitted
automatically without having to click "submit".
....
Quote:
/HEAD
BODY onload="document.xyz.submit()"
form name="form1" method="get"
action="http://www.some.com./search-name.asp?"
....


It redirects fine for me with the correct element names:
<BODY onload="document.form1.submit()">

--
Jan

http://213.47.90.11


Reply With Quote
  #2  
Old   
BernieH
 
Posts: n/a

Default Re: Automatic form submission - 10-07-2004 , 07:04 AM






Jan, thank you! I didn't pick up on that.

BernieH

"Jan Faerber" <faerber73 (AT) yahoo (DOT) com> wrote

Quote:
BernieH wrote:

Can anybody suggest something to ensure the 2nd page is submitted
automatically without having to click "submit".

...
/HEAD
BODY onload="document.xyz.submit()"
form name="form1" method="get"
action="http://www.some.com./search-name.asp?"
...


It redirects fine for me with the correct element names:
BODY onload="document.form1.submit()"

--
Jan

http://213.47.90.11



Reply With Quote
  #3  
Old   
Jan Faerber
 
Posts: n/a

Default Re: Automatic form submission - 10-07-2004 , 07:12 AM



BernieH wrote:

Quote:
Jan, thank you! I didn't pick up on that.

BernieH


Quote:
It redirects fine for me with the correct element names:
BODY onload="document.form1.submit()"

Or maybe you want to use a perl script like this?

#!/usr/bin/perl -w

use strict;
use CGI;
my $cgi = new CGI;
use CGI::Carp qw(fatalsToBrowser);

open(FH,">>/usr/web/data/userlog.xml");
print FH "<user-call>\n <remote-host>",
$cgi->remote_host(),
"</remote-host>\n <user-agent>",
$cgi->user_agent(),
"</user-agent>\n <goto-url>",
$cgi->url_param('goto'),
"</goto-url>\n <time-stamp>",
localtime(time),
"</time-stamp>\n</user-call>\n";
close(FH);

print $cgi->redirect($cgi->url_param('goto'));


Then you can use in a href=".. something like this
http://localhost/cgi-bin/redirect.pl...ww.teamone.de/

Yes, I found that on teamone.de - it´s german - I know - I am a looser.

--
Jan

http://213.47.90.11


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.