Time:
Scotland: Fri, 10:17 pm
Rhode Island: Fri, 5:17 pm
Florida: Fri, 5:17 pm
New Mexico: Fri, 3:17 pm
California: Fri, 2:17 pm

Click here to visit Livelife365.com

Click here to visit nmdarts.com



Buy this Ad Space.

180px wide.

Please get in touch with KH@ if you are interested and make an offer.

CLICK HERE TO GET AUCTION BAR NOW
US$10 per year - Save $100s!
The Fabulously Unfair
WebX Auction Bar. For Ebay etc.
Ro-Sham-Bo the opposition. Laugh like Eric Cartman when you win! CLICK HERE NOW!


More information and sign-up.

WebXpertz Hosting.
Custom fit from $5pm. PHP/MySQL
You'll save money, we'll save money. Seems fair to me. Interested? If so Please PM me here and tell me what you need. Thanks!


Please click here for more information

For continued disscussion on this topic : Email Form


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>

Vincent Puglia
06-30-2004, 05:45 PM
Hi oaklander,

Which variables -- myTable, comments? or '#FORM.comments#' ?

NN4 (and virtually every other browser but IE) is very strict about the full DOM when referencing a form element (document.formname.fieldname.value), #FORM... may need to be defined properly

Vinny

oaklander
06-30-2004, 11:04 PM
Its the '#FORM.comments#'

The message error:

Element FORM.COMMENTS is undefined in FORM



If I change the insert (changed #form.comments# to #comments#):
<CFQUERY NAME="Adddata" datasource="myAccessname">
INSERT INTO mytable
(comments, mydata)
VALUES
( '#comments#', '#mydata#' );

</CFQUERY>

then the message error is:

Element COMMENTS is undefined in FORM

It doesnt want to process anything inside the #'s.
How can I define it properly?
Please advise.
Thanks!

vksrinu
11-26-2004, 07:46 AM
hi

In your testing system just enable debugging settings there it display the form variables which you have defined in the forms. i think it may not help a lot , but you can know the things a little.



Srinivas