Skip to main content
Stack Overflow
  1. About
  2. For Teams

Timeline for Simple PHP form error

Current License: CC BY-SA 3.0

Post Revisions

11 events
when toggle format what by license comment
Aug 7, 2014 at 21:11 vote accept Community Bot
Aug 5, 2014 at 19:05 comment added The Blue Dog @LorenzMeyer: Pretty much what has already been pointed out; the empty href, empty action and missing $name. Personally, I would use $_SERVER['REQUEST_METHOD'] != 'POST' and the $_POST vars to do the work since it's a post method anyway, but that's not necessarily an issue though.
Aug 5, 2014 at 18:50 comment added Lorenz Meyer @thebluedog And what did you see ?
Aug 5, 2014 at 18:49 comment added Jeremy assuming you meant action this causes the form to submit to itself... of course, I see issue with cross browser support using this method...
Aug 5, 2014 at 18:47 comment added Lorenz Meyer Why would you want an empty href ?
Aug 5, 2014 at 18:45 answer added Jeremy timeline score: 1
Aug 5, 2014 at 18:44 comment added Jeremy Where exactly is the name input?????
Aug 5, 2014 at 18:42 comment added Nicolas Try this, echo "All fields are required, please fill <a href=''>the form</a> again.";
Aug 5, 2014 at 18:40 comment added Jeff Lambert What actually happens when you submit the form? Is an email sent, do you get a white screen/php error message? If the code works as is, this may be better suited for codereview.stackexchange.com
Aug 5, 2014 at 18:39 history edited Jeff Lambert CC BY-SA 3.0
Removing user's email address from question
Aug 5, 2014 at 18:36 history asked user2517826 CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /