Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > BlueVoda Website Builder Forums > Forms

Notices

Forms Discussion and help related to designing and implementing forms in the BlueVoda Website Builder.

Reply
 
LinkBack Thread Tools
  #1  
Old 10-12-2007, 04:52 PM
Marincky's Avatar
Ho Ho Ho!
 
Join Date: Apr 2006
Location: Worcester, UK
Posts: 3,502
Send a message via MSN to Marincky
Default Blank emails on some form submittions

Seldomly, but still enough to worry about, my client gets emails submitted from a form I made on his site that just reads:

'Values submitted from web site form'

There is no other information that comes through.

His form page is http://www.steppin-out.co.uk/contact.html

Please advise anyone?
__________________
Ramsey



Vodahost Approved Freelance Website Designer
Creating affordable internet presence for your business.
Unbeatable Customer Service

Want to get on Page one of Google? Talk to me!

Limo Hire
Wedding Directory
Wedding Forum Wedding Links
Wedding Dress Comparison Site

Make a more functional 404 Error Page
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 10-12-2007, 08:30 PM
Watdaflip's Avatar
Brigadier General
 
Join Date: Sep 2005
Location: Cincinnati, Ohio
Posts: 1,638
Default Re: Blank emails on some form submittions

People are probably hitting the submit button without filling in any information. Add validation to the fields so it can't be submitted with empty data
__________________

Register/Login Script
Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 10-12-2007, 08:45 PM
Marincky's Avatar
Ho Ho Ho!
 
Join Date: Apr 2006
Location: Worcester, UK
Posts: 3,502
Send a message via MSN to Marincky
Default Re: Blank emails on some form submittions

Quote:
Originally Posted by Watdaflip View Post
People are probably hitting the submit button without filling in any information. Add validation to the fields so it can't be submitted with empty data
Validation has always been there:

A lot of the fields have to be filled in so that can't be the reason...
__________________
Ramsey



Vodahost Approved Freelance Website Designer
Creating affordable internet presence for your business.
Unbeatable Customer Service

Want to get on Page one of Google? Talk to me!

Limo Hire
Wedding Directory
Wedding Forum Wedding Links
Wedding Dress Comparison Site

Make a more functional 404 Error Page
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 10-12-2007, 09:02 PM
Marincky's Avatar
Ho Ho Ho!
 
Join Date: Apr 2006
Location: Worcester, UK
Posts: 3,502
Send a message via MSN to Marincky
Default Re: Blank emails on some form submittions

Sorry I gave you the wrong form url. It's this one:

http://www.steppin-out.co.uk/music_menu.html

But as above, it DOES have questions that require filling in.
__________________
Ramsey



Vodahost Approved Freelance Website Designer
Creating affordable internet presence for your business.
Unbeatable Customer Service

Want to get on Page one of Google? Talk to me!

Limo Hire
Wedding Directory
Wedding Forum Wedding Links
Wedding Dress Comparison Site

Make a more functional 404 Error Page
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old 10-13-2007, 12:06 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,342
Default Re: Blank emails on some form submittions

Since you already have validation, i can only suppose that someone is visiting your action.php page.It is enough to visit the action.php page, to recieve a blank email. You can avoid this either using a session, that will prevent the email submission if no session value is found by the script, or add a validation (in the php script) that will look at all fields, and if all of them are blank, it will not submit.

Add this code as first line of your php script, immediately after <?PHP

if ($_POST == ""){
header ("Location: pagetogoto.html");
exit;
}


replacing pagetogoto.html with the actual page name (can be an error page or simply the index page)
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old 10-13-2007, 12:24 PM
Marincky's Avatar
Ho Ho Ho!
 
Join Date: Apr 2006
Location: Worcester, UK
Posts: 3,502
Send a message via MSN to Marincky
Default Re: Blank emails on some form submittions

When you say immediately after, like... next line?

Like this:

<?PHP
if ($_POST == ""){
header ("Location: index.html");
exit;
}
$mailto = "enquiries@steppin-out.co.uk";
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "Music Menu Contact Form";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form :\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
__________________
Ramsey



Vodahost Approved Freelance Website Designer
Creating affordable internet presence for your business.
Unbeatable Customer Service

Want to get on Page one of Google? Talk to me!

Limo Hire
Wedding Directory
Wedding Forum Wedding Links
Wedding Dress Comparison Site

Make a more functional 404 Error Page
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old 10-13-2007, 12:29 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,342
Default Re: Blank emails on some form submittions

Correct.

However, ABVFP will also perform php validation (those who have Javascript disabled in their browsers will not be able to override the built in Javascript validation) and will automatically perform also a form submission check.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old 10-13-2007, 12:31 PM
Marincky's Avatar
Ho Ho Ho!
 
Join Date: Apr 2006
Location: Worcester, UK
Posts: 3,502
Send a message via MSN to Marincky
Default Re: Blank emails on some form submittions

Thanks George. I have made the change and hopefully this has now cured my client's problem. I knew you would be along to solve it soon!

Many Thanks
__________________
Ramsey



Vodahost Approved Freelance Website Designer
Creating affordable internet presence for your business.
Unbeatable Customer Service

Want to get on Page one of Google? Talk to me!

Limo Hire
Wedding Directory
Wedding Forum Wedding Links
Wedding Dress Comparison Site

Make a more functional 404 Error Page
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old 10-14-2007, 07:15 AM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,342
Default Re: Blank emails on some form submittions

Sorry for this, the above code might not work in some cases, please replace it with this one:

if (count($_POST) == 0){
header ("Location: index.html");
exit;
}
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old 10-14-2007, 01:24 PM
Marincky's Avatar
Ho Ho Ho!
 
Join Date: Apr 2006
Location: Worcester, UK
Posts: 3,502
Send a message via MSN to Marincky
Default Re: Blank emails on some form submittions

Quote:
Originally Posted by navaldesign View Post
Sorry for this, the above code might not work in some cases, please replace it with this one:

if (count($_POST) == 0){
header ("Location: index.html");
exit;
}
It didn't work, I had two more come through. I'll try the new code thank you.
__________________
Ramsey



Vodahost Approved Freelance Website Designer
Creating affordable internet presence for your business.
Unbeatable Customer Service

Want to get on Page one of Google? Talk to me!

Limo Hire
Wedding Directory
Wedding Forum Wedding Links
Wedding Dress Comparison Site

Make a more functional 404 Error Page
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old 10-14-2007, 06:00 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,342
Default Re: Blank emails on some form submittions

Yes, this one works ok.

At least one of the two blanks that you got was from me, maybe both, i don't remember
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old 10-14-2007, 06:38 PM
Marincky's Avatar
Ho Ho Ho!
 
Join Date: Apr 2006
Location: Worcester, UK
Posts: 3,502
Send a message via MSN to Marincky
Default Re: Blank emails on some form submittions

Ah ok, well thank you for your kind help anyway. It's greatly appreciated.
__________________
Ramsey



Vodahost Approved Freelance Website Designer
Creating affordable internet presence for your business.
Unbeatable Customer Service

Want to get on Page one of Google? Talk to me!

Limo Hire
Wedding Directory
Wedding Forum Wedding Links
Wedding Dress Comparison Site

Make a more functional 404 Error Page
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 03:05 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2005-2009 VodaHost Web Hosting Your Perfect Web Host - All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100