Current location: Hot Scripts Forums » General Community » Script Requests » PHP Redirect Script based on User Text Field


PHP Redirect Script based on User Text Field

Reply
  #1 (permalink)  
Old 09-17-05, 05:37 AM
skipcollege skipcollege is offline
Newbie Coder
 
Join Date: Dec 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
PHP Redirect Script based on User Text Field

Hi, I need a php script that redirects you to the right url based on a single text field's input. The purpose is for customers who have been given a certain affiliate's id to enter it so they are redirected to the affiliate's internal page. Example... affiliate "john" gives a customer a business card with his affiliate code "john" on it. The customer goes to the website domain.com where this text input field exists. He types in "john" and is redirected to domain.com/product123/item.html. There will be hundreds to thousands of affiliate codes and urls. Probably reside in a mysql db? If a non-existent affiliate id is entered then the customer must be alerted of this so they can try again.

Thank you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 09-17-05, 07:34 AM
Aka Tolken's Avatar
Aka Tolken Aka Tolken is offline
Newbie Coder
 
Join Date: Jan 2005
Location: England
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
I don't know of a script like this, but it wouldn't be too hard to make. I'd be willing to make it for you for a fee. If you're interested feel free to PM me or email me (aka<remove_this>@iftomatoes.com)
__________________
Shrink - Free domain
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 09-17-05, 03:52 PM
PeteM PeteM is offline
Newbie Coder
 
Join Date: Jul 2005
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
I guessing that in addition to your stated requirements you'd also need a password protected screen that enables you to maintain the associate list.

I'd be happy to write you some PHP scripts using MySQL. Cost would be in the region of $250, payable once I have written a demo for you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 09-17-05, 04:24 PM
skipcollege skipcollege is offline
Newbie Coder
 
Join Date: Dec 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Don't need a cms at this point if I was having it built...phpmyadmin could be used just fine for now. $250 is way to steep for me on this. Affiliates would mainly be driving customers to their internal site...domain.com/john. 99% of customers will do that but I'm just doing this for the people who go to domain.com. They would just type in "john" and the script would redirect them to domain.com/john. Really won't generate hardly any more sales but would just be more user friendly. Super simple script in my mind. I feel like I could almost do it with no php/mysql language knowledge even. That's why I was initially thinking like $25 -$35. The the affiliate software I'm using has this feature built in even but it uses the person's id number "1234" instead of their username "john" from the software.

aka tolken what price did you have in mind? Anyone else willing to help or know of an existing script that redirects based on text field input?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 09-17-05, 04:36 PM
PeteM PeteM is offline
Newbie Coder
 
Join Date: Jul 2005
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
For $35 I could do a form with redirect based on a .txt file.

E.g. you have a file that contains:-

john;http://www.domain.com/product123/item.html
fred;http://www.domain.com/product146/item.html
bill;http://www.domain.com/product153/item.html

You'd FTP the .txt file to the server.

Wouldn't be as fast as MySQL but might well be OK.

Pete
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 09-17-05, 05:06 PM
Aka Tolken's Avatar
Aka Tolken Aka Tolken is offline
Newbie Coder
 
Join Date: Jan 2005
Location: England
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
It sounds like all you need to do is change the id variable to the name variable in the affiliate software. You should probably check to see if you can do that yourself.

I was thinking in the region of $70-100 to code it for you, depending on the specific details. I wouldn't use text files as they would start to crawl quite quickly.
__________________
Shrink - Free domain
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #7 (permalink)  
Old 09-17-05, 05:26 PM
PeteM PeteM is offline
Newbie Coder
 
Join Date: Jul 2005
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
You could sub-divide the text files to make it quicker.....

e.g.

members_a_to_h.txt
members_i_to_p.txt

Not very elegant but it would work!

Pete
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #8 (permalink)  
Old 09-18-05, 12:03 PM
skipcollege skipcollege is offline
Newbie Coder
 
Join Date: Dec 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
hmm...i'll think about those and post back in a couple days. In the mean ime anyone else may comment or make offers.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP multi-dimensional array sorting issue aqw PHP 2 06-25-05 12:09 AM
PHP script problem (please help) osmanmumtaz PHP 0 05-24-05 08:29 AM
Form text to PHP file ervel PHP 1 10-31-04 02:45 PM
Adding values to text field from popup - JavaScript danielle_dee JavaScript 0 07-28-04 09:54 PM
Run PHP Script Within PHP Script Reg PHP 1 06-29-04 10:09 AM


All times are GMT -5. The time now is 10:39 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.