oaklander
06-28-2004, 08:07 PM
I have a Cold Fusion mailer script that sends an email survey message where someone fills out the form in their Outlook Mail message and sends in their response to a database. Our workstations are Windows 2000. The Email form shows up in the Outlook Mail but it will only process if someone has IE6 as their default browser. But we also have alot of people with Netscape 4.77 default browsers and the form will not process it if someone has a Netscape 4.77 default Browser.
The error message says my variables are not defined in the action page after it is submitted from the email message so I assume I need to translate or do some sort of decoding for it to work?
Please advise if there is anything I can do to correct the Netscape 4 problem? My attempt using the decodeURI method didnt work.
<CFMAIL
TO="smith@mycompany.com"
FROM="jones@mycompany.com"
SUBJECT="tester"
TIMEOUT="900"
SERVER="111.222.33.44"
PORT="25"
type=HTML>
<form action="http://myurlhere/actionpagehere.cfm" method="post" onclick="alert(decodeURI(this.href));return false">
Data entry:
<input type="text" name="comments" size="25">
<input type="text" name="mydata" size="25">
<input type="submit" name="submit" value="Submit">
</form>
</cfmail>
My action page:
<CFQUERY NAME="Adddata" datasource="myAccessname">
INSERT INTO mytable
(comments, mydata)
VALUES
( '#FORM.comments#', '#FORM.mydata#' );
</CFQUERY>
The error message says my variables are not defined in the action page after it is submitted from the email message so I assume I need to translate or do some sort of decoding for it to work?
Please advise if there is anything I can do to correct the Netscape 4 problem? My attempt using the decodeURI method didnt work.
<CFMAIL
TO="smith@mycompany.com"
FROM="jones@mycompany.com"
SUBJECT="tester"
TIMEOUT="900"
SERVER="111.222.33.44"
PORT="25"
type=HTML>
<form action="http://myurlhere/actionpagehere.cfm" method="post" onclick="alert(decodeURI(this.href));return false">
Data entry:
<input type="text" name="comments" size="25">
<input type="text" name="mydata" size="25">
<input type="submit" name="submit" value="Submit">
</form>
</cfmail>
My action page:
<CFQUERY NAME="Adddata" datasource="myAccessname">
INSERT INTO mytable
(comments, mydata)
VALUES
( '#FORM.comments#', '#FORM.mydata#' );
</CFQUERY>



