404 returned from a form’s action = PHP_SELF
-
Hey all, I’ve been trying to figure out this problem and it’s killin’ me. My WP instll itself has been fine. No problems with the site. However, I tried adding a Page, using a copy of the template’s index.php, removed the scripts to pull back the content and replaced it with the tag include(TEMPLATEPATH . ‘/new_event.php’); .
The form that I am building is working fine (a little sloppy, but I’m just trying to get it working now). When I hit submit, the page goes back to index.php, instead of my PHP script. I have tried setting the action on the form to be Submit_Event (my Page name), new_event.php (my included file) and others. Right now it is:
action=”<?php echo $PHP_SELF;?>”I really think I am just missing something, that may be more related to PHP errors, than WP errors.
OH, the file new_event.php that I am including works fine out side of WP. The address, if anyone would like to take a look is http://choochooguide.com/submit-event/
Any thoughts?
Thanks,
Mike
The topic ‘404 returned from a form’s action = PHP_SELF’ is closed to new replies.