Wordpress contact form redirect to post page automatically

  • Veeramanikandan
  • Novice
  • Novice
  • Veeramanikandan
  • Posts: 22

Post 3+ Months Ago

Am creating a contact form in wordpress header.php file.

when I am click the submit button without fill form fields its displaying the error messages, Its ok. and also its automatically redirect to the post page. After filling all fields the mail send successfully.

Anybody please help me why it can be redirect to post page automatically? and how to restrict them?
  • Zealous
  • Guru
  • Guru
  • User avatar
  • Posts: 1305
  • Loc: Sydney

Post 3+ Months Ago

i used to use contact form 7 plugin and worked for what i needed it for. But if your working on something more custom then may need to provide more details to the error.
  • Veeramanikandan
  • Novice
  • Novice
  • Veeramanikandan
  • Posts: 22

Post 3+ Months Ago

Hi Zealous,

Actually am use own php coding for create contact form. this form located on home page. when am click submit buttom of empty form its display "required all fields message". so it can be validated good.

but it can be automatically redirected at post page.

I want to know why it can be redirected automatically and how to protect them?

Thank you...
  • ScottG
  • Proficient
  • Proficient
  • ScottG
  • Posts: 483

Post 3+ Months Ago

Please provide examples or your contact form code so we can see the your issue your having.

Please wrap any code into code blocks
[code]
Generic Code
[/code]
[php]

PHP code
[/php]
[html]

HTML Code
[/html]
[javascript]

JavaScript Code
[/javascript]
  • heatherIDD
  • Born
  • Born
  • heatherIDD
  • Posts: 1

Post 3+ Months Ago

I think there is something wrong with the path on your ‘action’. You can use a contact form plugin instead. I see you’re using Wordpress. There might be a predefined code in there that is why it is not functioning well. Tell us more about your problem.
  • viveksinha2016
  • Born
  • Born
  • viveksinha2016
  • Posts: 1

Post 3+ Months Ago

Hi,

Building a website for a business today is not as expensive and distressing. If you are not satisfied with your theme or site. I’d like to present my favorite theme, hope it meets your requirements. At kopatheme, you can get 60+ best premium and free word press themes for 2016. They all are adaptive, easy to use, and designed based upon your needs.

Vivek Kumar Sinha

Thanks

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 25 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.