PHP syntax error. let's see what went wrong! My code: PHPcode & lt; formaction & quot; action. php & quot; method "post" & gt; & lt; p & gt; account: & lt; inputtype "text" name "username" & gt; & lt; p & gt; & lt; p & gt; password: & lt; PHP syntax error. let's see where I got it wrong!
My code:
PHP code
Put it on the server. the following message is displayed:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in C: \ xampp \ htdocs \ index. php on line 16
The first line of code above is 16th lines.
------ Solution --------------------
Echo"
Current time: $ currtimestr
"
Php?>
1. it is best to separate echo from ""
Echo "content ";
2. the content is enclosed by quotation marks, and the HTML code you want to output contains double quotation marks. The PHP interpreter uses quotation marks to determine where the string ends. Therefore ';
?>
------ Solution --------------------
Discussion
An error is returned when I reenter all "".
There are 16 more lines
Html;
Of course, I didn't look at your other code, just this part...
Discussion
Reference:
An error is returned when I reenter all "".
There are 16 more lines