This message is bugginf the heck out of me when i hit the submit button.
Fatal Error!Invalid form ID. Please check your SSI code! PGP FormMail - why so ugly? [Archive] - FutureQuest Community:: 9 posts - Last post: Apr 12, 2001I've got the PGP FormMail working fine, only problem is when I decrypt I'm not aware of any problems with PGP Form Mail wrapping lines. http://www.aota.net/forums/archive/index.php/t-8211.htmlHOME |
Here's my actionscript for my Submit Button.
on (release) {
FormData = new LoadVars();
FormData.Name = name.text;
FormData.Name = address.text;
FormData.Name = city.text;
FormData.Name = state.text;
FormData.Name = zip.text;
FormData.Name = phone.text;
FormData.Name = email.text;
FormData.Name = message.text;
FormData.resulturl = 'http://myurl.com/v-web/forms/thanks.htm';
FormData.send('http://myurl.com/v-cgi/forms.cgi','_self','POST');
FormData.Formid = _Vdeckformid = 189; }
Here's my CGI script from my server.
enctype="application/x-www-form-urlencoded"
method="post">
Name:
|
|
|---|
Address:
| Problem with a formmail script - CirtexHosting Community - Video :: 5 posts - 3 authors - Last post: Jun 13, 2007I'm trying to get the formmail script from Matt's Script Archive to work. Without success so far. Help needed! http://forums.cirtexhosting.com/website-development-scripting/2162-problem-formmail-script.htmlHOME | Re: Formmail from matt script archive:: #define ERROR_BAD_EXE_FORMAT 193L so it looks like NT does not like your version of formmail.exe, perhaps there was a problem download it?, it any case you http://pi3web.sourceforge.net/support/msg00124.htmlHOME |
|
|---|
City:
|
|
|---|
State:
|
|
|---|
Zip Code:
|
|
|---|
Phone:
|
|
|---|
Email:
|
|
|---|
Message:
|
|
|---|
|
|
|---|
PLEASE HELP.
Ok i fxed that...
on (release) {
FormData = new LoadVars();
FormData.Name = Name.text;
FormData.Address = Address.text;
FormData.City = City.text;
FormData.State = State.text;
FormData.Zip_Code = Zip_Code.text;
FormData.Phone = Phone.text;
FormData.Email = Email.text;
FormData.Message = Message.text;
FormData._vDeckformid = 189;
FormData.resulturl = 'http://myurl.com/v-web/forms/thanks.htm';
FormData.send("http://myurl.com/v-cgi/forms.cgi",'_self','POST' (http://myurl.com/v-cgi/forms.cgi",'_self','POST'));
}
Now this is what i get as results...
I'm getting close I can smell it.
undefined undefined undefined undefined undefined undefined undefined undefined
first, check that your variables are making it to your loadvars object by adding a trace statement.
trace(FormData);
like this:
on (release) {
FormData = new LoadVars();
FormData.Name = Name.text;
FormData.Address = Address.text;
FormData.City = City.text;
FormData.State = State.text;
FormData.Zip_Code = Zip_Code.text;
FormData.Phone = Phone.text;
FormData.Email = Email.text;
FormData.Message = Message.text;
FormData._vDeckformid = 189;
//trace to make sure your vars are coming in to LV object from input text
trace("this is my LVars object: "+FormData);
FormData.resulturl = 'http://myurl.com/v-web/forms/thanks.htm';
FormData.send("http://myurl.com/v-cgi/forms.cgi","POST");
}
also notice that i changed the FormData.send line
try tracing out this variable:
FormData.Formid = _Vdeckformid = 189;
i don't think you can start a variable with an underscore like that.
yeah I used your code and I'm still get "undefined" in my email. So I assume it's not loading the variables correctly.
on (release) {
FormData = new LoadVars();
FormData.Name = Name.text;
FormData.Name = Address.text;
FormData.Name = City.text;
FormData.Name = State.text;
FormData.Name = Zip_Code.text;
FormData.Name = Phone.text;
FormData.Name = Email.text;
FormData.Name = Message.text;
FormData.Name = Submit = sumbit;
FormData.Name = Subject = 'Form Processed Email';
FormData._vDeckformid = 189;
FormData.resulturl = 'http://myurl.com/v-web/forms/thanks.htm';
FormData.send("http://myurl.com/v-cgi/forms.cgi",'_self','POST');
}
you're rewriting the FormData.Name variable over and over again! you need a different variable name for phone than you do for email, etc.!
Thanks natronp. Alright! I'm getting somewhere! No more invalid form ID. The only problem I'm having now is when I check my email there's no info there. It's blank or sometimes just says undefined. Here's my new code...
on (release) {
FormData = new LoadVars();
FormData.Name = Name.text;
FormData.Name = Address.text;
FormData.Name = City.text;
FormData.Name = State.text;
FormData.Name = Zip_Code.text;
FormData.Name = Phone.text;
FormData.Name = Email.text;
FormData.Name = Message.text;
FormData.Name = Submit = sumbit;
FormData.Name = Subject = 'Form Processed Email';
FormData._vDeckformid = 189;
FormData.resulturl = 'http://myurl.com/v-web/forms/thanks.htm';
FormData.send("http://myurl.com/v-cgi/forms.cgi",'_self','POST');
}
Where's The Advantage In Windows Genuine Advantage?
Stocks Bounce After S&P Joins Bear Market |