Jump to content

Recommended Posts

Sorry for my first post being a request for help :)

 

I have a simple database that lists files and the url is sent encoded

 

I need to use the decoded url parameters as a query with my mysql database

 

$unencodedP = urldecode($_REQUEST['p']);

echo "<a href='page.php?$unencodedP'>Decoded Url</a><br/>";

 

This displays the decoded url and when i click it the results are displayed from the mysql database but i want to skip having to click it and submit the decoded url to the database

 

Or is there a way to load the page with the decoded url and not the encoded one

 

 

I really hope someone can help me with this as I am really new to php

 

Dave

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/56722-url-decode-to-mysql-query/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.