passing values appended to URL

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

juansoul
New php-forum User
New php-forum User
Posts: 29
Joined: Tue Oct 08, 2002 6:33 pm

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 ???

Jay

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

Try this function urlencode()

juansoul
New php-forum User
New php-forum User
Posts: 29
Joined: Tue Oct 08, 2002 6:33 pm

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

Is there any way to escape the # sign?

Jay

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.


Return to “PHP coding => General”

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron