close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


UE on default documents may prevent emal sending

Thread began 9/22/2009 11:33 am by lon.winters301855 | Last modified 9/22/2009 2:56 pm by Jason Byrnes | 1323 views | 1 replies |

lon.winters301855Beta Tester

UE on default documents may prevent emal sending

I just ran across this, thought I'd post a heads-up in case someone else stumbles on this situation.

I wanted to have a more friendly URL (coming from another email) to a contact page. The URL is formatted, subfolder/. I didn't specify the actual file name in the URL. The file name is a default document, and I named it index.asp.

Using UE version 2.x, I noticed that the condition to execute the code also includes the HTTP referrer (Thank you for that, helps shut down the spam bots!)

So apparently, without the actual filename in the URL, it doesn't pass the referrer test and just reloads the page. In my case, I just removed that block of code, leaving the only condition as the Form Post. Not too worried about Spam yet.

Does this sound right? Did I need to remove all that code, or would just perhaps one of the parameters do it?

Sign in to reply to this post

Jason ByrnesWebAssist

This is the currant page submit trigger.

It compares the address of the currant page with the address of the referring page. It includes the name of the file. You could change the if statement From:
if(($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST)) {

if(($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"])) > 0) && isset($_POST)) {

for it to work on index pages.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...