This is a discussion on "[SOLVED] Wordpress contact form - getting 404 on send" within the PHP Forum section. This forum, and the thread "[SOLVED] Wordpress contact form - getting 404 on send are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] Wordpress contact form - getting 404 on send
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
[SOLVED] Wordpress contact form - getting 404 on send
Hi All
Another Wordpress question I know(!) I'm using
But as soon as it's actually ready to 'mail', I get a 404!? I've used this form in the past fine, but I wondered if there was anything that could interfere with the Wordpress core? Ideally I want to code my own and not use a plugin - thing is, the various form plugins work fine and I can't work out where I'm going wrong.
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
|
|
||||
|
Re: Wordpress contact form - getting 404 on send
You're missing a parenthesis in your if statement.
if (@mail($recipient, $subject, $msg) should be if (@mail($recipient, $subject, $msg))
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
||||
|
Re: Wordpress contact form - getting 404 on send
Sorry Rakuli, that's a typo in the post. The script is working fine, but for some reason (when it comes to sending) Wordpress throws a 404 at me.
I read somewhere about using a mail function defined in the Wordpress core - anyone know about this?
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
||||
|
Re: Wordpress contact form - getting 404 on send
BUG
EDIT: After further debugging, I think it was down to using variables that conflicted with the Wordpress core. So just for anyone in the same situation, make sure you're using unique variables!!
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Last edited by Aso; Jan 25th, 2008 at 11:50. |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] PHP contact form problem | fl0w | PHP Forum | 12 | Jan 31st, 2008 17:56 |
| [SOLVED] PHP contact form redirect to same form | Posie | PHP Forum | 14 | Jan 29th, 2008 20:28 |
| [SOLVED] PHP Contact Form | Stuart | PHP Forum | 8 | Dec 4th, 2007 17:42 |
| [SOLVED] Contact Form Help | danny322 | PHP Forum | 3 | Nov 7th, 2007 16:05 |
| [SOLVED] PHP Contact Form | Stuart | PHP Forum | 9 | Oct 20th, 2007 00:48 |