Hi, When I submit my form, I can save the URL and paste it into another browser. Then, it will again send me an e-mail with blank data. I'm getting blank emails because I think search engine crawlers are finding this URL. How do I avoid this? Thanks.
Forums
Duplicate Submissions
Hi totalweb,
It's a bit brutal but putting the following code into the On Submit code - before sending email field on the Form Code tab will kill the page. This shouldn't be a problem is it's coming from web crawlers.
Bob
It's a bit brutal but putting the following code into the On Submit code - before sending email field on the Form Code tab will kill the page. This shouldn't be a problem is it's coming from web crawlers.
<?
if ( empty($_POST) ) {
exit("POST array is empty"«»);
}
?>
Bob
Hi Bob,
Thanks for the suggestion. I put the code in there and sure enough, the online system will display the error message. The problem, however, is that it is still sending an e-mail message with blank data. Thanks and let me know if you have another suggestion.
Todd
Thanks for the suggestion. I put the code in there and sure enough, the online system will display the error message. The problem, however, is that it is still sending an e-mail message with blank data. Thanks and let me know if you have another suggestion.
Todd
Hi Todd,
When you see the message is it on a blank screen - no other Joomla stuff at all? If so then the script has been killed before it gets to send the e-mail. Please double check that you have it in the 'before sending email' field.
If you still see the usual Joomla page with the message on it then something else is going on and I need to dig a bit more.
Bob
When you see the message is it on a blank screen - no other Joomla stuff at all? If so then the script has been killed before it gets to send the e-mail. Please double check that you have it in the 'before sending email' field.
If you still see the usual Joomla page with the message on it then something else is going on and I need to dig a bit more.
Bob
Hi Todd, Bob,
Todd has an earlier version, so thats it :
Bob's solution should work fine if you upgraded, however there is a workaround if you don't like to upgrade, you can find some file at this path:
components/com_chronocontact/chronocontact.php
Look for a line of code which is :
just below this line Plz add Bob's code and everything should be fine!!🙂
Cheers
Max<br><br>Post edited by: GreyHead, at: 2007/07/30 09:55
Todd has an earlier version, so thats it :
Bob's solution should work fine if you upgraded, however there is a workaround if you don't like to upgrade, you can find some file at this path:
components/com_chronocontact/chronocontact.php
Look for a line of code which is :
function uploadandmail( ) {
just below this line Plz add Bob's code and everything should be fine!!🙂
Cheers
Max<br><br>Post edited by: GreyHead, at: 2007/07/30 09:55
Hi Todd & Max,
Of course, that makes sense - the 'before sending email' field only exists in recent versions.
If you use Max's suggestion to hack the code then a 'better' insertion would be:
Bob<br><br>Post edited by: GreyHead, at: 2007/07/30 10:03
Of course, that makes sense - the 'before sending email' field only exists in recent versions.
If you use Max's suggestion to hack the code then a 'better' insertion would be:
<?php
if ( empty($_POST) ) {
echo "POST array is empty";
return;
}
?>
as this will show a normal empty Joomla page instead of a blank screen.
Bob<br><br>Post edited by: GreyHead, at: 2007/07/30 10:03
This topic is locked and no more replies can be posted.