...

View Full Version : Hide web pages until a pay pal payment!



MarQuetta
08-18-2006, 01:54 AM
Hello Everyone;

I'm new to the forum and wonder if I can receive some coding help.

I am trying to hide my ebook pages of my website until I receive a pay pal payment and my code is not working using Public Void Hide and Show or the Hide/Show functions period.

My code is this... what am I doing wrong???

<script language= "Javascript">

bpm= (href= "http://www.marquettal.tripod.com/amnesia");
paypal= (href= "http://www.paypal.com/cgi-bin/wbscr");
bpmindex= (href= "http://www.marquettal.tripod.com/index.html");

Public Void Hide(){
bpm.hide();

while or if paypal != null;

else

Public Void Show(){
bpm.show();
}

</script>

ArcticFox
08-18-2006, 08:02 AM
Doesn't Paypal have a redirect page after payment? Like a "Thank You" page...

DELOCH
08-18-2006, 08:22 AM
... This script is better written in Server Side Script/CGI

but


<script language= "Javascript">

bpm= (href= "http://www.marquettal.tripod.com/amnesia");
paypal= (href= "http://www.paypal.com/cgi-bin/wbscr");
bpmindex= (href= "http://www.marquettal.tripod.com/index.html");

Public Void Hide(){
bpm.hide();

while or if paypal != null;

else
Public Void Show(){
bpm.show();
}

</script>

Too many mistakes, I would do it in PHP as:



<?
if (something == true) {
echo "The result";
} else {
echo "The false result";
}
?>


Same in javascript but in Server it generates HTML while Javascript changes the code temporarely

ArcticFox
08-18-2006, 06:23 PM
What if they have no server-side access?

felgall
08-18-2006, 11:13 PM
You can't conceal web pages without using server side processing to do the checking.

With Javascript all someone has to do is read your page source to find out where the "hidden" page is.

The best that you could do without server side access is to set up the hidden page as the thankyou page for the Paypal call and use the encrypted source option that Paypal provide to make it impossible for someone to obtain the address of the page from the source. That way the page is hidden until either the person makes the payment or someone tells them where to find it.

ArcticFox
08-18-2006, 11:15 PM
The best that you could do without server side access is to set up the hidden page as the thankyou page for the Paypal call and use the encrypted source option that Paypal provide to make it impossible for someone to obtain the address of the page from the source. That way the page is hidden until either the person makes the payment or someone tells them where to find it.


Exactly! :thumbsup:

MarQuetta
08-19-2006, 12:43 AM
Thank you all very much...

I will look into using PHP Code...

The mistakes are what for the script that I wrote? I took it from the book and from another script that someone was using. Even though I did try many ways of coding.

Help me out. I can't find the right book to resources to tell me the right thing.

ArcticFox
08-19-2006, 12:48 AM
If you have server-side access and can use PHP, that would be your best option.

If you haven't the time or energy to learn code, or if you need a quick solution then having your eBook page as the "Thank You" page on a PayPal redirect may be the better idea.

DELOCH
08-19-2006, 02:50 AM
yeah, like i said the only smart thing is by using CGI/SSI/SSS for it, still PHP is not the only one, if you have trouble with the C++ Syntax you can use ASP/.NET or such.

good luck ^_^

mlseim
08-19-2006, 05:15 AM
Look at "cubecart" .... free shopping cart system that
uses PayPal and offers the option to sell software downloads
as well as tangible goods. The free version requires you keep
their branding on the pages, but it works just fine.

http://www.cubecart.com/site/home/



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum