Forum Moderators: mack
Anyhow, my question is this - I need to develop a webpage that will generate a link from the data that the user enters - for instance, when linking to Play.com I have the option to 'deep link' the item, and gain revenue for my site from it - so say the user enters a URL, and then presses the appropriate button - I need the output to be the 'deep linked' version of the items URL.
Sorry if it's not very clear, I basically need to know where to start (any further guidance is appreciated!) in order to have an webpage that accepts one value, and then modifies if and displays the value to the user
Many Thanks,
Ghost Pig
"enter URL"
I type in: "www.example.com"
and hit enter. You want your site to take this info, and modify it, to:
"www.example.com/deep/link/index.html"
and display the output to the end-user? Please clarify this for us Ghost! ;0)
-- Zak
Beit case 1: I would create index.php. I would have the form submit to self, the PHP would modify, and write the link to a text file, or MySQL database, and include the text file or query results into the html. Then everyone who visits this page would see a list of modified links that surfers have been entering.
Beit case2: I would use Javascript to modify the input, and place it with innerhtml into an empty <TD> using a DIV in CSS. Then the surfer who inputed the link would see the modified link, the world would not. However unless you planted a cookie, the information that user enters will go away when they close their browser.
Hope this helps...
-- Zak