BigTime Posted August 31, 2008 Share Posted August 31, 2008 Hi everyone! I have an issue where I am trying to create dynamic links on a page that are using a variable to populate that link. However when that variable is pulled to use as part of that link it stops as soon as it encounters a space in the data. So simply the link looks like this: echo ("<td width=110><a href=http://www.mysite.net/ScheduleField.php?fieldname=$fieldname style=\"text-decoration: none\"><font face=arial size=1 color=#ffffff>$hometeam $homeconference</a></TD>\n"); Fieldname out of the table would be a multi word something like 'North High School' However when trying to use that variable in a link, in real time it appears as: http://www.mysite.net/ScheduleField.php?fieldname=North It is essentially dropping everything after the first word. It DOES however print out the full data when I use the $fieldname variable in a table during my while loop, this link appears IN my while loop, it just doesnt produce the full text for the link part. The SQL (4.1.22-standard) db is set up on that field as text with no attributes and not null Can anyone guide me to how I might ensure the full text might be implemented? If I have not provided adequate information on the issue please let me know, and thanks in advance for any thoughts! Quote Link to comment Share on other sites More sharing options...
BigTime Posted August 31, 2008 Author Share Posted August 31, 2008 I am such a tard...I swear every time I post here I figure out what I have done...maybe you guys are my lucky charms I just merely needed to include the a href link in quotes.... :-\ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.