Feedback Form HTML Unexpected end of file PHP -


This php file looks correct, but the 'unexpected end of file' error is returning whether there is an error in the HTML file I have tried to put the tag inside the print, an extra white space has been removed on the PHP line, the bracket [] and the quotation marks have been added on the lines in the middle, and whenever I enter it on the php script Send data here is the html code:

   gt; title & gt; your feedback & lt; / title & gt; & lt; / head & gt; & lt; body & gt; & lt; php // script 3.3 Handle_form.php // This page receives data from feedback.html // it will receive: title, name, email, comment in $ _POST $ headline = $ _POST ['title']; $ name = $ _POST ['name ']; $ Email = $ _POST [' email ']; $ comments = $ _POST [' comments']; print "& lt; P & gt; Thanks, $ title $ name, for your comments. & Lt; / P & gt; "" & lt; P & gt; You said that you have this example '$ reaction' and said: & lt; Br / & gt; $ Comments & lt; / P & gt; "???    

Instead:

  print "& lt; P & gt; Thanks, $ title $ name, for your comments. & Lt; Use   

to:

  echo "

Thank you, $ title $ name, for your comments. & Lt; / P & gt; Echo "& lt; p & gt; You said that you found this example as a '$ response' and added:

I think you ";" Character.

------------------ UPDATE ---------------------- - -----

I try this code and work:

   gt; principal & gt; & gt; meta-http-equiv =" content-type " Content = "text / html; Charset = utf-8 "/> & gt; Title & gt; Your Feedback & lt; / title & gt; & lt; / head & gt; & lt; body & gt; & lt; php if (isset $ _ POST ['email'])) {$ title = $ _POST ['title']; $ name = $ _POST ['name']; $ email = $ _POST ['email']; $ comments = $ _POST [ 'Comments'];} and {$ title = "no title came"; $ name = "no name came"; $ comments = "no comments found"}} // $ answer is not defined ?? $ Response = "Live long and rich"; // I defined "echo" & lt; p & gt; For your comments, $ title $ name, thanks. & Lt; / p & gt; "echo" & Lt; p & gt; You said that come Pico This example has got '$ response' and added: 
$ comments ";? & Gt; & Lt; / Body & gt; & Lt; / Html & gt;

PS: Try executing this script alone ... Name this as "handle_form.php" and put it in the NAP address bar:

 < Code> localhost / your_project / handle_form.php   

works on my local host ..... If your problem can still continue, the problem is in the submit page.

Salodos

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -