eBook authors eBook Software - create and publish your own ebooks
Create your own eBooks
 
   
EBookApprentice.com
Learn How To Create, Publish & Market E-Books
 
   
EBookCompiler.com
E-Book Creation Software
 
   
EBookPower.com
Add sophisticated multimedia to your E-Books
 
   
CoverFactory.com
Create E-Book covers in minutes
 
 
  EBookSubmit.com
E-Book Marketing & Promotion made easy
 
  EBookJungle.com
Search engine for E-Books
 
  EBookInterviews.com
Interviews with eBook authors
 
  EBookEnhance.com
Tools for building better eBooks
 
 
 
Archived Message:

ASP Selling 1,000 passwords example


 
EBookCompiler This is for those of you whose web server supports ASP.

1. Generate the password list with 1,000 passwords and save into the ASP
file   say passwordlist.asp

2. Make your E-Book link to the sales page with a parameter

e.g.
http://www.yoursite.com/sellpassword.asp?x={p}

3. Make a page on your site call sellpassword.asp

<HTML>
<HEAD>
<TITLE>Sell a password</TITLE>
</HEAD>
<BODY>
add some text here
<%
DIM x
x = Request.QueryString( "x" )
IF x <> "" THEN
   Response.Write "Are you ready to buy a password?"
   Response.Write "<BR><BR>"
 ' edit the next line to include your nickname and product number and name
  Response.Write "<A
HREF=http://www.clickbank.net/sell.cgi?link=nickname/1/Product_Name&x=" & x
   Response.Write "Click here to buy password number " & X
  Response.Write "</A>"
ELSE
   Response.Write "<FORM METHOD=GET ACTION=sellpassword.asp>"
   Response.Write "Enter the number of the password (1 to 1000) that you
want to buy"
   Response.Write "<INPUT MAXLENGTH=4  NAME="&CHR(34)&"x"&CHR(34)&"
SIZE=4>"
   Response.Write "</FORM>"
END IF
%>
add some text here
</BODY>
</HTML>

The above sells a single clickbank product, and passes x thru as a parameter
to the thank you page.  Edit the line which is marked

4. Make you thank you page, say thankyou.asp

<!--#INCLUDE FILE="passwordlist.asp" -->
<HTML>.
<HEAD>
<TITLE>Thankyou</TITLE>
</HEAD>
<BODY>
<%
DIM x
x = Request.QueryString( "x" )
IF x <> "" THEN
   Response.Write "Your password is " & passwordlist(x)
ELSE
   Response.Write "An error occured, contact the webmaster for help"
END IF
%>
add text here
add text here
</BODY>
</HTML>

6.IMPORTANT -  test thoroughly

7. Try
www.aspin.com
www.4guysfromrolla.com
for further asp info

(Edited by EBookCompiler at 6:59 pm on Feb. 23, 2001)


Posted on: 6:58 pm on February 23, 2001
ebookpro Outstanding Sunil!

I have always wanted to try asp!  I will test out the coding and see how it works... if it does, then I would like to publish it in my newsletter -- very useful info!

Eva


Posted on: 3:57 pm on February 24, 2001
EBookCompiler For a better version, make one change:

From:

  Response.Write "<FORM METHOD=GET ACTION=sellpassword.asp>"
  Response.Write "Enter the number of the password (1 to 1000) that you
want to buy"
  Response.Write "<INPUT MAXLENGTH=4  NAME="&CHR(34)&"x"&CHR(34)&"
SIZE=4>"
Response.Write "</FORM>"


To:

  Response.Write "<FORM METHOD=GET ACTION=sellpassword.asp>"
  Response.Write "Enter the number of the password (1 to 1000) that you
want to buy"
  Response.Write "<INPUT MAXLENGTH=4  NAME="&CHR(34)&"x"&CHR(34)&"
SIZE=4>"
Response.Write "<BR><INPUT TYPE=SUBMIT VALUE="&CHR(34)&"Buy Now"&CHR(34)&">"
  Response.Write "</FORM>"

Eva, I can't guarantee that I haven't made a typo (can't see it, if I have) as I've been editing the code in the forum - based on more a complicated original that did work.  But the principle works.

Also error checking is omitted on the sample (for example, you might want to add code to verify x is between 1 and 1000, and not say 1,001)

I'll also see if we can get some other language versions up in the not too distant future...


Posted on: 1:48 am on February 25, 2001
EBookCompiler One small HTML error

where it says

Response.Write "Click here to buy password number " & X

Change to

Response.Write ">Click here to buy password number " & X
>Click here to buy password number


Posted on: 3:14 pm on August 15, 2001
crystal Hi Sunnil,

I would like to know how to do this with PHP.  I can always install and customize existing code, but I haven't had the time to learn to write it for myself.  Does anybody have a snippet that will do this already made?

My server doesn't have ASP, I'm running on Red Hat...I guess that CGI would be ok too, but I actually prefer PHP.  It's dynamic and can do other cool things that I have programmed into my pages - and I can't exactly name my pages with BOTH a php and a cgi extension, obviously.

Thanks for your time


Posted on: 1:36 am on August 24, 2001
EBookCompiler Starting a new thread for you Crystal

Posted on: 8:21 pm on August 24, 2001
EBookCompiler push for James Lin

Posted on: 7:31 pm on January 31, 2002
EBookCompiler push

Posted on: 3:15 pm on March 19, 2002
juanr I have used your thankyou.asp code.
However when I run it, it prinys out all the passwords then it ends with an error :
Microsoft VBScript runtime error '800a000d'

Type mismatch: '[undefined]'

/MarketingCenter/ebook/thankyou.asp, line 12

What am I doing wrong?


Posted on: 7:40 am on May 22, 2003
EBookCompiler The formatting didn't come out quite right in the forum

Look in scripts section ofwww.ebookcode.comfor a better formatting example

Line breaks etc are significant in VBScript/ASP, so this could be the reason

If still struggling post you exact code.  Simple trick: one the file thankyou.asp in Notepad, make the windoiw real wide first line is line 1, 2nd line 2, etc.  What do you see on line 12, and perhaps a few preceeding lines


Posted on: 4:13 am on May 27, 2003
EBookCompiler The formatting didn't come out quite right in the forum

Look in scripts section ofwww.ebookcode.comfor a better formatting example

Line breaks etc are significant in VBScript/ASP, so this could be the reason

If still struggling post you exact code.  Simple trick: one the file thankyou.asp in Notepad, make the windoiw real wide first line is line 1, 2nd line 2, etc.  What do you see on line 12, and perhaps a few preceeding lines


Posted on: 4:13 am on May 27, 2003
opabertnet Hello,
How would I modify the Multiple Password ASP script for use with PayPal? I am not a programmmer so I'd need a cut and paste snippet with instructions. I have to believe that someone may have already done this but I don't know where to look for the info. Many thanks.

Posted on: 7:11 pm on June 12, 2003

Go to Active Discussion Thread

Participate in Current/New Discussions

List All Archived Forums



Copyright © 2000-2015, Answers 2000 Limited.

With any business, it is up to the individual owner of said business to ensure the success of the business. You may make more or less than any sample figures or results that might be quoted on our web sites or other publications. All business involves risk, and many businesses do not succeed. Further, Answers 2000 Limited does NOT represent that any particular individual or business is typical, or that any results or experiences achieved by any particular individual/business is necessarily typical.

Disclosure: Our company's websites' content (including this website's content) includes advertisements for our own company's websites, products, and services, and for other organization's websites, products, and services. In the case of links to other organization's websites, our company may receive a payment, (1) if you purchase products or services, or (2) if you sign-up for third party offers, after following links from this website. Unless specifically otherwise stated, information about other organization's products and services, is based on information provided by that organization, the product/service vendor, and/or publicly available information - and should not be taken to mean that we have used the product/service in question. Additionally, our company's websites contain some adverts which we are paid to display, but whose content is not selected by us, such as Google AdSense ads. For more detailed information, please see Advertising/Endorsements Disclosures

Our sites use cookies, some of which may already be set on your computer. Use of our site constitutes consent for this. For details, please see Privacy.

Contact Us    About and Terms Of Use    Privacy    Advertising/Endorsements Disclosures