Jump to content

[SOLVED] Quick Question - White Space


Ell20

Recommended Posts

Hi,

 

Im having an issue with white space in a link, the link is:

 

echo '<a href="download.php?file='.$directory.'">Download '.$file.' - '.strtoupper($ext).'</a>';

 

Inside the $directory variable is a name e.g David Beckham. The space between David and Beckham is causing the script to run incorrectly.

I am 100% sure its the space causing the issue as I changed one instance to DavidBeckham and it worked.

 

Does anyone have any ideas as to how to solve this?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/117226-solved-quick-question-white-space/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.