Jump to content

[SOLVED] passing the '&' as part of the parameter


soulbriski

Recommended Posts

How do you pass the ampersand (&) as part of the parameter?

 

My site is written in php and the example shown below would in fact be "echoed" and the clubname would be a variable etc etc etc.

 

For ease of understanding a typical HTML example would be

 

<a href="MyURL/leaguetables.php?clubname=George & Dragon">Show Club</a>

 

Of course the '&' is going to break it because it thinks the space after the '&' in George & Dragon is the next parameter!

 

I have tried putiing the club name inside quotes and "str_replacing" it with '&" etc but i cant get round the problem.

 

Can someone help me?

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.