[PHP] HTML embedding
Hello, I am having an issue. I am using an access database, where the names have whitespace. Now, when I try to generate a link within the php script I get just their first name But in the link itself I get the whole name so the html link looks something like this a href=http://www.whatever.com/dave;David Bruner/a I am using an ODBC connection. Thanks in advance for any help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HTML embedding
Try urlencode your data before outputing it. php.net/urlencode Andrew - Original Message - From: Todd Barr [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 10:11 PM Subject: [PHP] HTML embedding Hello, I am having an issue. I am using an access database, where the names have whitespace. Now, when I try to generate a link within the php script I get just their first name But in the link itself I get the whole name so the html link looks something like this a href=http://www.whatever.com/dave;David Bruner/a I am using an ODBC connection. Thanks in advance for any help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HTML embedding
--- Todd Barr [EMAIL PROTECTED] wrote: I am having an issue. I am using an access database, where the names have whitespace. Now, when I try to generate a link within the php script I get just their first name But in the link itself I get the whole name So, you are talking about two things: 1. A link 2. The link itself One works and one doesn't. As a complete guess, look into URL encoding. I bet you are trying to use a space in a URL. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php