Is there a way to force a post without using submit button?

Is there a way to force a post without using submit button?

am 18.02.2007 16:19:26 von JimO

Is there a way to force a post without using submit button?


Thanks,
Jim

Re: Is there a way to force a post without using submit button?

am 18.02.2007 17:52:13 von Dave Anderson

"JimO" wrote:
> Is there a way to force a post without using submit button?

This is not really an ASP question, but rather an HTML one. ASP has no
buttons, as it runs on the server.

That said, *ANY* means of form submission will do, as long as your form
method is POST.

Likewise, you can post XMLHttpRequest submissions. But I doubt you are using
AJAX.



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.

Re: Is there a way to force a post without using submit button?

am 20.02.2007 20:39:16 von ravichoudhari

It has nothing to with ASP is it is a client side problem, however if
u want to send the form data using POST without using the HTML form, u
can have a look at
http://groups.google.co.in/group/microsoft.public.inetserver .asp.general/browse_thread/thread/b295b0f822a74b2a/15df60f0d 5d3a612?lnk=st&q=vb6+post+data+to+asp&rnum=1&hl=en
and
How to Send HTTP Post data to a Web Server (VB6) in www.abstractvb.com

both these explain POST using VB 6.

Re: Is there a way to force a post without using submit button?

am 20.02.2007 21:10:46 von Dave Anderson

[please quote at least part of the message you are responding to]

ravichoudhari wrote:
> It has nothing to with ASP is it is a client side problem, however
> if u want to send the form data using POST without using the HTML
> form...

It does not *necessarily* have anything to do with ASP. It is certainly
possible to use ASP to "force a post without using a submit button":

<%@ Language="JScript" %><%

var xmlhttp = new ActiveXObject("Msxml2.ServerXMLHTTP.4.0")
xmlhttp.open("POST", targetURL, false)
xmlhttp.send("name1=value1&name2=value2")

%>



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.