Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Spaces mess-up QueryString 2

Status
Not open for further replies.

CliveC

Programmer
Nov 21, 2001
1,222
US
<script language=&quot;php&quot;>
$name =$_POST['n'];
$email =$_POST['e'];
$link =&quot;</script>

The above fragment works fine when name contains no spaces. However when I receive a name with spaces in it, it truncates the outgoing querystring at the space.

What is the best way to handle this?

Clive
 
see yesterdays post
thread434-585974

t_avatar.jpg

'... and then it wouldn't compile?'
 
Thanks also welshtroll. Actually the rawurlencode worked better for what I was doing. Thanks for alerting me to the distinction.

Clive
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top