Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

passing values appended to URL

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

passing values appended to URL

Postby juansoul » Mon Nov 04, 2002 1:29 pm

Im trying to pass a variable value to a php file through a link, and it works but the value Im trying to pass contains a # symbol and everything after the # symbol does not get passed to the php file.

this is what I have
<a href="thefile.php?item=widget#1234">link</a>

and what gets passed to the php file is this

widget

everything after the # symbol doesnt get passed how do i pass the symbol and the numbers ???
juansoul
New php-forum User
New php-forum User
 
Posts: 29
Joined: Tue Oct 08, 2002 6:33 pm

Postby Jay » Mon Nov 04, 2002 1:35 pm

Try this function urlencode()
Jay
 

Postby juansoul » Mon Nov 04, 2002 1:40 pm

Is there any way to escape the # sign?
juansoul
New php-forum User
New php-forum User
 
Posts: 29
Joined: Tue Oct 08, 2002 6:33 pm

Postby Jay » Mon Nov 04, 2002 1:53 pm

No, because the problem is with the html entity. Have a look at that function, it'll make it all clear.
Jay
 


Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 3 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron