Re: What's wrong with this link?

From: Date: Sun, 21 Jan 2001 00:01:51 +0000
Subject: Re: What's wrong with this link?
Groups: php.general 
Request: Send a blank email to php-general+get-35857@lists.php.net to get a copy of this message
Mike, Looks like your slashes are backwards use "\" instead of "/" to escape characters. You will notice that "/" is used in UNIX directories and HTML tags. Here is the corrected code: print "<a href=\"showpictures.php?id=$PID>\">Click Here</a>"; I assume "PID" is a variable. If so, it should be noted as "$PID". A really good book for learning PHP is "Beginning PHP4" by Wrox ISBN# 1-861003-73-0 - Scott > I realize my slashes are most likely in the wrong spot and i'm new to this > PHP stuff so a little help would be appreciated. I get a parse error > > print "<a href=/"showpictures.php?id=<PID>/">Click > Here</a>"; > > Thanks, > Mike > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- -------------------------------------- Scott A. Gerhardt P.Geo. Gerhardt Information Technologies scott@gerhardt-it.com --------------------------------------

« previous php.general (#35857) next »