gabrielebr Posted November 9, 2010 Share Posted November 9, 2010 Hi,could you please help me ?where is the error in this code :<?php $myemail = gabriele; $sito = farchemia.it;echo "<a href=\"mailto:" .$myemail . "@" . $sito . "\">" scrivi</a>";?>thank youregardsgabriele Link to comment Share on other sites More sharing options...
Synook Posted November 9, 2010 Share Posted November 9, 2010 All strings need to have quotes around them. $myemail = "gabriele";$sito = "farchemia.it"; Link to comment Share on other sites More sharing options...
gabrielebr Posted November 9, 2010 Author Share Posted November 9, 2010 All strings need to have quotes around them.$myemail = "gabriele";$sito = "farchemia.it"; Thank you,but it seems there is something else that must be wrong: I have this error.Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in...... Link to comment Share on other sites More sharing options...
Synook Posted November 9, 2010 Share Posted November 9, 2010 Check your quoting: echo "<a href=\"mailto:" .$myemail . "@" . $sito . "\">" scrivi</a>"; There is an errant one just before the word scrivi. Link to comment Share on other sites More sharing options...
gabrielebr Posted November 9, 2010 Author Share Posted November 9, 2010 Check your quoting:echo "<a href=\"mailto:" .$myemail . "@" . $sito . "\">" scrivi</a>"; There is an errant one just before the word scrivi. Now it works !thank youregardsGabriele Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.