Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 10-06-2007, 07:43 AM urlencode question!
Average Talker

Posts: 20
Trades: 0
Whoops... it isn't fixed, is it possible to urlencode a URL via $_GET? Cause i've tried encoding via $_GET... i don't see any difference while $_POST works perfectly.

I've noticed the character '#' being left out (and everything behind it) e.g. www.domain.com/files/list.htm#thelist , so 'thelist' dissapears including the '#'.

Code:
$url = urlencode($_GET['url'])

Last edited by koolaid; 10-06-2007 at 03:27 PM..
koolaid is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-06-2007, 11:47 AM Re: urlencode question!
rogem002's Avatar
PHP Chap

Posts: 843
Name: Mike
Location: United Kingdom
Trades: 0
It's a shame we can't delete the posts/threads we make.
__________________
My Blog/Site:
Please login or register to view this content. Registration is FREE
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Old 10-06-2007, 03:24 PM Re: urlencode question!
Average Talker

Posts: 20
Trades: 0
Quote:
Originally Posted by rogem002 View Post
It's a shame we can't delete the posts/threads we make.
Heh thought it was all OK... well maybe not ... see my first post for the problem.
koolaid is offline
Reply With Quote
View Public Profile
 
Old 10-07-2007, 03:40 PM Re: urlencode question!
Average Talker

Posts: 20
Trades: 0
*bump*
koolaid is offline
Reply With Quote
View Public Profile
 
Old 10-07-2007, 05:10 PM Re: urlencode question!
rogem002's Avatar
PHP Chap

Posts: 843
Name: Mike
Location: United Kingdom
Trades: 0
URLencode is made for the query parts of the url. for example

PHP Code:
<?php
echo ("url.com?value=".urlencode("*&TG&*&*")."");
?>
__________________
My Blog/Site:
Please login or register to view this content. Registration is FREE
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Reply     « Reply to urlencode question!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.50223 seconds with 12 queries