Jump to content

kigoe

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

kigoe's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. eh - too tedious for me. that requires a) inserting every link I want to use into the database and b) pulling these ids everytime I want to link to something. I could make a page with, say, a short form to add links above and a list of all links and their ids below, for reference, but simply making them and looking them up seems a bit overly tedious. thanks for the suggestion, though.
  2. I've got a rather simple script for links, where all my links point to a single PHP page (I'll call it the link redirection script), which then redirects users to the intended link (definened in the variable [b]link[/b]) and records their passage in a MySQL database, so I can see which links are the most popular. This has, up until this point, worked quite well; the structure is such: [code]http://mydomain.com/link.php?e=i&link=index.php[/code] where [b]e[/b] indicates an external or internal link and [b]link[/b] indicates the intended URL (in the above case, relative to the root directory, since its an internal link). However, I run into problems when I try to specify a link to another PHP page [i]with variables defined in the inteneded URL[/i]. For instace, if I were to link to [b]index.php?foo=bar&user=happy[/b], or something, the link would look like this: [code]http://mydomain.com/link.php?e=i&link=index.php?foo=bar&user=happy[/code] PHP then interprets this link as contating more variables for use by the link redirection script, and sends me to the page [b]index.php?foo=bar[/b], leaving out the subsequent [b]&user=happy[/b] or any other variables defined afterward. Is there any way for me to write this link so that only the [b]e[/b] and [b]link[/b] variables are used by the link redirection script, and the [b]foo[/b] and [b]user[/b] variables are ignored -- until they get to the intended PHP page? thanks! -nik
×
×
  • 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.