PDA

View Full Version : urlencode giving error with @


Jacobb123
12-04-2007, 11:26 PM
I am trying to encode an email address in a CURL script and it is throwing an error.
Parse error: syntax error, unexpected '@' in /home/jacobb2/jakesserver/bot/index.php on line 33

here is the code $postfields = "email=" . urlencode(email@hotmail.com);
$postfields .= "&password=" . urlencode(pass);

What is the problem here?

GJay
12-04-2007, 11:48 PM
you've forgotten to put quotes around the strings...