Forums

check form's name and params to 404

alec6w 05 Dec, 2013
Hello,

My url is something like this
.../chronoforms/?chronoform=myform&product=SKU01

How can I redirect to a 404 page if the user change manually the url such as
.../chronoforms/?chronoform=myforfgdfgdfm&product=SKU01

Actually i have the page "There is no form with this name or may be the form is unpublished, Please check the form and the url and the form management."

Or if the param product does not exist such as
.../chronoforms/?chronoform=myform&product=ShfhfKU01
Max_admin 09 Dec, 2013
Hi,

In the first case you can't, but in the 2nd, you may use a redirect user action, when the product query fails (this is based on your form's setup).

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
GreyHead 10 Dec, 2013
Hi alec6w,

Just adding to Max's reply. If the URL doesn't submit to ChronoForms (i.e. the form name is invalid) then there is nothing that ChronoForms can do about it as it never sees the results.

If the URL does submit to ChronoForms then you should use ServerSide Validation to check that the submitted values are OK.

Bob
This topic is locked and no more replies can be posted.