Nu stiam sigur ce titlu sa aleg pentru topic , am sa va dau un exemplu pentru Twitter .
Userul introduce usernameul de twitter in :
Cod:
<input type="text" name="username" />
Codul php prinde username-ul cu :
Cod PHP:
$username $_GET['username']; 
Acum eu am nevoie de sintaxa urmatoare : http://twitter.com/username .
Am incercat urmatoarele coduri php :
Cod PHP:
// cel de jos nu merge
$url "http://twitter.com/$username";

//nici urmatorul
$url "'http://twitter.com/'$username";

//de asemenea nici urmatorul
$url "http://twitter.com"$username;

//si nici urmatorul
$url"http://twitter.com" echo $username
Cum pot face sa se lipeasca http://twitter.com cu $username ?