Hello - I’m trying to concatenate some text and a variable retrieved from a form using $_post but get an error due to an unexpected semicolon. If I remove the semicolon I get a different error. Can anyone advise me? It’s a stupid little thing with almost certainly a simple solution but its been driving me crazy for a whole day. My code is below:-
<?php $UrlData = "original_site_url:" . $_POST["siteurl"] . ; many thanks for any adviceRather than tell you what the problem is,
What is the concatenation symbol in PHP? What does the semicolon do?
[php]$_POST[“siteurl”] . ;[/php]
Now what do you see?
Remove the last period.
Thanks guys - removing the last period solved it !