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

rating

Server Side Validation Fail - PHP Self vs REQUEST URI

Thread began 7/10/2012 2:42 pm by Ian S | Last modified 7/10/2012 3:22 pm by Ian S | 1554 views | 2 replies |

Ian S

Server Side Validation Fail - PHP Self vs REQUEST URI

Hi Guys,

Just a quick question which I think I know the answer to, but just wanted to check.

Your extensions use PHP_SELF for things like referring failed validations back to itself if no redirect is set. I had problems with this on a site where the form was on a rewritten URL.

However, I simply changed PHP Self vs REQUEST URI and that solved my problem.

Am I right in thinking that the only reason this isn't good is because it doesn't work on IIS? Or are there other pitfalls I should take into consideration?

Cheers
Ian

Sign in to reply to this post

Jason ByrnesWebAssist

we don't use Request URI because it is not universal, like you mention, it is not present in IIS.

That is pretty much the major downfall.

To be honest, I don't like to leave the faed redirect blank, it's better to specify the failed redirect and include a querystring variable to use as a flag for the initial value.

Sign in to reply to this post

Ian S

Thanks for the reply Jason,

Yes, I usually set a ?fail=1 for a failed validation but in this instance as I need to retain the friendly URL I think I am going to have to use Request URI (its being hosted on Apache) and the Validation Session to control the messages.

Cheers
Ian

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

Content

rating

Layout

rating

Ease of use

rating

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...