Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form wont submit if page exited too soon.... 2

Status
Not open for further replies.

maharg

Technical User
Mar 21, 2002
184
Hi folks,

I have a form which a few visitors complain doesnt always work.

I think they leave the page too quick after clicking the submit button?? That's my guess. I can make it goof up by hitting the back button real quick or closing the page.

Is this something anyone else has come across - if so, any idea of a solution?

Maybe my page has a bug which I am blind to ! ... it's at and a shorter one at
Any suggestions would be much appreciated!

Cheers, Graham
 
Hi mate,

In IE6 with everything enabled, the form worked fine.

In Opera with a blocked referrer and disabled cookies, I get the following message:

Code:
CGIEMAIL has been installed correctly.
To utilize this script, include the following tag in your HTML document:

<FORM ACTION="/cgi-bin/cgiemail" METHOD="POST">

It looks like your script has some kind of referral check, if this is so then you are going to run into endless problems.

Hope this helps

Wullie


The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Thanks GOJUmOdeL

Did you get an email response to both form actions?

I dont see in the logs that we autoresponded with the Catalogue enquiry and the quote enquiry to the same person.

Or maybe you didn't use your proper email address in the form - if not, the loop is open and you wont know if theres been a failure.

I wont use anyones email addresses - promise! I'm an electronics engineering company, not looking out to harvest web developers' addresses!

Cheers all,

Graham
 
Hi Wullie

Thanks for checking. What kind of referral check did you mean? If in cgi, I can pose the question to the cgi author and see if we can modify or eliminate that bit.

My post line goes like this ...
Code:
<form action="/cgi-bin/cgiemail"  name="quote" method="POST" onSubmit="return isReady(this);" />

Do you mean the javascript isReady(this) function?

Thanks matey

Graham
 
Hi mate,

I meant if the CGI checks to see what page the form was submitted from.

So for example, if it checks to make sure that it was submitted from your domain, then any user with a blocked or false referrer will cause an error.

Hope this helps

Wullie


The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
maharg, I used a fake email with fake information. I can resubmit using my real email to see if I get anything in the email.

I'll let you know if I got a correspondance email or anything.

[sub]
____________________________________
Just Imagine.
[sub]
 
maharg, OK I got the correspondance email.

This is what was in the e-mail:
Code:
Dear Mr. From Tek-Tips, 

You recently visited london-electronics.com and asked us to 
send you more information. 

This message is just to let you know we are dealing with 
your request. 

Many thanks for your interest in london-electronics.com 

Best regards, 



Rob GRUMMITT 
Sales Manager 
[URL unfurl="true"]http://www.london-electronics.com[/URL] 

---------------------------------------- 

For your records, this is the information we received from you.... 

---------------------------------------- 
Preferred language =  English 
Asked for a printed book catalogue 
Asked for a CD ROM catalogue 

---------------------------------------- 

Interest =  None, this is a test email. 

---------------------------------------- 


---------------------------------------- 
YOUR DETAILS 
---------------------------------------- 
Mr. 
GUJUm0deL 
From Tek-Tips 
Web Developer 
Imajin Arts 
123 



NYC (town) 
NYC 
11432 
United States of America 
---------------------------------------- 
e  = info@imajinarts.com 
t  = none 
f  = none 
---------------------------------------- 
Comments = This has been a test email.  This email was conducted to help 'maharg' test if this application has any problems.  I am testing this test email on a IE6 PC in a Windows Platform. 
---------------------------------------- 
Mailing list action = Please remove / dont add 
----------------------------------------

[sub]
____________________________________
Just Imagine.
[sub]
 
Hi GUJUmOdeL

Looks fine, thanks for checking - got your original in our inbox.

Maybe nothing wrong, but when a couple of visitors raised the same question I got concerned.

Maybe Wullie is right, could be excluding some by way of the cgi tests.

Once again everyone - thanks!

Graham
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top