php - I need a contact submit form fixed -


OK, I have modal toggling, which is easy with bootstrap but now, whenever I submit the form I'm redirected to php / contact-process.php. It appears that PHP is processed but then only remains on a white screen, and it is not being redirected and my main email has not received any email (I put example@gmail.com for the stackexchange question ). Please help me.

  & lt ;! - Model for contact - & gt; & Lt; Div class = "modal fade" id = "contact" role = "dialog" & gt; & Lt; Div class = "modal-dialog" & gt; & Lt; Div class = "modal-content" & gt; & Lt; Form class = "form-horizontal contact" name = "contact" action = "php / contact-process.php" & gt; & Lt; Div class = "modal-header" & gt; & Lt; Button type = "button" class = "off" data-discarded = "model" & gt; & Lt; Span aria-hidden = "true" & gt; & Amp; time; & Lt; / Span & gt; & Lt; Span class = "sr -only" & gt; Close & lt; / Span & gt; & Lt; / Button & gt; & Lt; H4 & gt; Contact us & lt; / H4 & gt; & Lt; / Div & gt; & Lt; Div class = "modal-body" & gt; & Lt; Div class = "form-group" & gt; & Lt; Label = "contact-name" class = "col-lg-2 control-label" & gt; Name: & lt; / Label & gt; & Lt; Div class = "colonel-LG-10" & gt; & Lt; Input type = "text" name = "name" class = "form-control" id = "contact-name" placeholder = "full name" & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "form-group" & gt; & Lt; Label = "contact-email" class = "col-lg-2 control-label" & gt; Email: & lt; / Label & gt; & Lt; Div class = "colonel-LG-10" & gt; & Lt; Input type = "email" name = "email" class = "form-control" id = "contact-email" placeholder = "you@example.com" & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "form-group" & gt; & Lt; Label = "contact-message" class = "col-lg-2 control-label" & gt; Message: & lt; / Label & gt; & Lt; Div class = "colonel-LG-10" & gt; & Lt; Textarea name = "usertext" name = "message" id = "" rows = "8" class = "form-control" style = "size: none;" & Gt; & Lt; / Textarea & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "modal-footer" & gt; & Lt; A href = "#" class = "btn btn-default" data-rejected = "model" & gt; Close & lt; / A & gt; & Lt; Button class = "btn btn-primary" type = "submit" value = "send!" & Gt; Send & lt; / Button & gt; & Lt; / Div & gt; & Lt; / Form & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt;  

Contact-process. PHP:

  & lt ;? Add recipient address to php // here $ myemail = 'example@gmail.com'; Enter input name from // html, then post to #thanks if (isset ($ _ POST ['name'])) {$ name = strip_tags ($ _ POST ['name']); $ Email = strip_tags ($ _ POST ['email']); $ Message = tab_tag ($ _ POST ['message']); // Generate Email and Send! $ From = $ myemail; $ Email_subject = "Contact form: $ name"; $ Email_body = "You've got a new message." "Here are the details: \ nName: $ name \ n". "Email: $ email \ n message \ n $ message"; $ Headers = "to: $ myemail \ n"; $ Headers = "Reply-To: $ Email"; Mail ($ EMAIL_SUBJECT, $ email_body, $ header for $); // Redirect Header ("location: index.php"); Go out(); }? & Gt;  


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -