Frequently Asked Questions
“This page cannot be accessed directly”?
-
“This page cannot be accessed directly”?
Posted on June 4, 2006
Written by
Amelie (view more by Amelie)
Filed under FAQ, NL-PHPMail, Scripts
Whenever I try to submit my form, I get the following error: Error: This page cannot be accessed directly. It doesn’t go away no matter what I do!
You MUST name the submit button from your form “submit”. Instructions on how to do this can be found in the readme file, but basically this is the general idea:
Your form will have a submit button for it to work properly. The code will look something like this:
<input type="submit" value="Send form" />
For the form to work correctly, you need to modify that code so that it looks like this:
<input type="submit" value="Send form" name="submit" />
See the name="submit" part? That part MUST be included for the form to work properly.