thats make you page site huge?
Also Js would submit the form using whatever method was declared in
the <form> tag.
Here's some test code
<script language="_javascript_">
function submitform()
{
document.myform.submit();
}
</script>
<form name="myform" action="" method="post">
Search: <input type='text' name='q'>
<A href="" submitform()">Search</A>
</form>
<cfif isDefined("form.q")>
form
<cfelseif isDefined("url.q")>
url
</cfif>
Hope this helps
Andy
----- Original Message -----
From: Mike Kear <[EMAIL PROTECTED]>
Date: Wed, 15 Sep 2004 22:07:35 +1000
Subject: _javascript_ submit button vs html submit button
To: CF-Talk <[EMAIL PROTECTED]>
How true is the following statement? :
[quote]
If you use a _javascript_ form submit button, you have to make sure your
form variables dont get too large because the _javascript_ function
passes the input to the action page using the GET method, and the
total length of a URL and all the URL Variables is limited. If you
have a very large amount of form input, you had better use HTML submit
buttons and the POST method
[/quote]
Is this true? Its brought about by an application I'm working on
where we might have a hidden form field with as many as 40,000 userIDs
passed to the action page in a comma delimited list.
Cheers
Mike Kear
Windsor, NSW, Australia
AFP Webworks
http://afpwebworks.com
.com,.net,.org domains from AUD$20/Year________________________________
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

