<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>
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!
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...
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.
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'
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
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
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.
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.