0

I writed <?php echo '<input type="Radio" name="mark" value="mt">asdasddddd </br>'; ?> in a HTML file.

but it always tell me Parse error: syntax error, unexpected T_ECHO

I found some instructions, but dont know what's wrong with this sntax.

Thanks in advance.

6
  • strange.. are you using a condition? or anything which requires { Commented Sep 10, 2013 at 8:28
  • This line of code seems valid. Could you please post the entire HTML page ? The issue might be somewhere else. Commented Sep 10, 2013 at 8:29
  • That should not be echoed anyway. Just surround it with condition, if you are using one, if not than you have even weaker reason to echo it. Commented Sep 10, 2013 at 8:29
  • Remove the PHP in this example, you don't have anything dynamical which you need to put in PHP Commented Sep 10, 2013 at 8:29
  • Why use echo at all? Why not <?='some data'?> - or even simple plain output without PHP? Commented Sep 10, 2013 at 8:30

1 Answer 1

5

The actual error is somewhere above. The most common thing is an unclosed semicolon (;)

Sign up to request clarification or add additional context in comments.

1 Comment

@user2764080: If this answer solved your problem, consider upvoting and accepting it (when Stack Overflow lets you), by clicking on the large green tick mark (✔) under the answer's score.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.