View Single Post
Old 07-02-2009, 10:42 PM   #11 (permalink)
Tanax
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

Gee. Stop fighting. He was just stating his input, if he's incorrect, just post that in a commonly fasion.

When dealing with variables in links(or in any type of string - like an SQL query), I use sprintf. In this case:

PHP Code:
$link sprintf("http://www.konanakunteokkoota.org/applyhereforjob.php?username='%s'&post_id='%d'",
secure($username),
$post_id);

echo 
'<a href="' $link '">Word</a>'
Where secure is a function where you do the regular string-security checks(mysql_real_escape_string, stripslashes.. etc).
__________________
Tanax is offline  
Reply With Quote