James,

Put

<cfif IsDefined("form.fieldnames")>
  POST = <cfoutput>#form.fieldnames#</cfoutput><br>
<cfelse>
  NO POST<br>
</cfif>

in your action page ... and you will find that it's all good.

As my friend/pipefitter told me numerous times this weekend as we were
wrangling gas-lines: "I'd rather answer your stupid questions now than fix
your stupid mistakes later!" ;)

-mike



James Blaha <[EMAIL PROTECTED]>
06/21/2004 01:30 PM
Please respond to cf-talk

        To:     CF-Talk <[EMAIL PROTECTED]>
        cc:
        Subject:        JS Issue submit() to CF Form

Hello All,

I have a really stupid question.

Can anyone please send me a html template that auto submits to a cf page
that will have the form variable show up properly on the CF template
that recieves the POST.

Regards,
-JB

Example:

<html>
<script LANGUAGE="_javascript_1.1">
    function login()
    {
        document.LoginForm.submit();
    }
</script>
<body >   <FORM NAME="LoginForm" ACTION="" METHOD=POST">
        <INPUT TYPE="HIDDEN" NAME="UserID" VALUE="MyUserNamexx ">
            <INPUT TYPE="HIDDEN" NAME="Password" VALUE=" MyPasswordxx ">
  </FORM>
</body>

</html>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to