Seems simple enough, is it ?

Smolek

Diamond Member
Aug 30, 2001
4,985
1
0
I am looking to create a script (or if there is a premade script, I'll use that) that will allow you to enter some information and it will add it to a spot in the link and have it redirect you there.

Example

I enter this url into the script

http://www.name.com/account/don.jmp=

Then when someone calls the script up in the browser it has a box that says enter your name. Someone types in "Greg" and then are directed to

http://www.name.com/account/don.jmp=Greg

That's all it needs to do. How do I do it or what type of script name do I look for ? Thanks
 

mugs

Lifer
Apr 29, 2003
48,920
46
91
You sure you don't want a question mark at the beginning of the query string? What language you want this in? PHP?

This should work in PHP:
<? Header("Location: http://www.name.com/account/don.jmp={$_POST['variable']}") ?>

That's the whole script. Make a page with a form that posts to that page with a textbox named variable.

I didn't test it, and it could probably be made more robust, but that's a quick and dirty answer.