Submit

A

Al

How to Hit the Submit button on via code?

Explain.
I have a page with a submit button but do not want
users to view such a page instead I like to call it from a
URL Link and hit the submit button automatically, Can this be possible? and
if so please provide example

I have tried <body onload> but does not work in ASP.
or maybe I am doing some wrong,

TIA
 
E

Evertjan.

Al wrote on 02 mei 2004 in microsoft.public.inetserver.asp.general:
How to Hit the Submit button on via code?

Explain.
I have a page with a submit button but do not want
users to view such a page instead I like to call it from a
URL Link and hit the submit button automatically, Can this be
possible? and if so please provide example

I have tried <body onload> but does not work in ASP.
or maybe I am doing some wrong,

This has nothing to do with serverside! ASP

Please ask in a cliendside [javascript or vbscript] NG.
 
R

Roland Hall

in message : How to Hit the Submit button on via code?
:
: Explain.
: I have a page with a submit button but do not want
: users to view such a page instead I like to call it from a
: URL Link and hit the submit button automatically, Can this be possible?
and
: if so please provide example
:
: I have tried <body onload> but does not work in ASP.
: or maybe I am doing some wrong,

If you're using ASP to write your form to the page then onload is what you
want to use.

sub prt(str)
Response.Write(str & vbCrLf)
end sub

prt("<body onload=""document.form1.submit()"">")
prt("<form name=""form1"" action=""posthere.asp"" method=""post"">)
prt("<input type=""hidden"" name=""input1"" value=""somevalue"" />")
prt("</form>")
prt("</body>")

HTH...

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top