Current location: Hot Scripts Forums » General Community » Script Requests » text file to link


text file to link

Reply
  #1 (permalink)  
Old 08-27-03, 05:39 PM
rush989 rush989 is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
text file to link

I am looking for a script that when a user types a web address like www.website.com/page.php?user=aperson@aol.com , the program will open a .txt file on my server, make sure that email address contained in the web address is in the text file and if it is, that email address will be put into a PayPal link button on the page.

The PayPal link script is as follows:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="EMAIL_GOES_HERE@EMAIL.com">
<input type="hidden" name="item_name" value="Payment">
<input type="hidden" name="item_number" value="DBP">
<input type="hidden" name="amount" value="5.00">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="return" value="http://www.campingnation.com/success.html">
<input type="hidden" name="cancel_return" value="http://www.campingnation.com/cancel.html">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="image" src="https://www.paypal.com/images/x-click-but6.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>

The only thing that needs to be changed in where is says
EMAIL_GOES_HERE@EMAIL.com

Thanks!!!
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 08-27-03, 05:41 PM
rush989 rush989 is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Oh and BTW, it does not have to be PHP
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 08-28-03, 01:50 PM
jewellgr jewellgr is offline
Wannabe Coder
 
Join Date: Aug 2003
Location: Michigan USA
Posts: 111
Thanks: 0
Thanked 0 Times in 0 Posts
Here are the two things in this zip file.

email.txt: This will be your list of email addresses. Seperate the email addresses by ONLY a comma.

(ex:email1@yahoo.com,email2@yahoo.com)

page.php: This is the page that checks for the email addresses, it will say that no accounts were found if the user isnt in the email list.
Hope this helps.

For a demo:
click http://www.arecaweb.com/page.php?use...body@yahoo.com to see a valid email.

click http://www.arecaweb.com/page.php?user=nobody@yahoo.com to see an invalid email.
Attached Files
File Type: zip page.zip (741 Bytes, 294 views)

Last edited by jewellgr; 08-28-03 at 01:55 PM.
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 08-29-03, 07:12 PM
rush989 rush989 is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
WOW! Exactly what I needed. Many thanks!
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 code to edit a text file mdhall Script Requests 12 12-23-10 05:03 AM
Writes to a text file gamextremer2003 JavaScript 4 09-11-03 10:43 AM
Need to submit form to database and text file - Any ideas how? dpreiss ASP 1 08-21-03 07:02 PM
Upload file type and size limiter! Arctic ASP 1 08-02-03 08:06 PM
replacing certain parts of certain strings in text files Archbob PHP 0 07-29-03 05:23 PM


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