Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
  1. #1
    Junior Member
    Join Date
    Apr 2004
    Posts
    3
    Member #
    5622
    I have created a dog training site that allows the user to ask aour trainer a question by completing a form. Just recently the trainer wanted a fee added for each question submitted. I added a PayPal subscription button to start the submission process. When the PayPal transaction is complete, the form page is displayed.
    Of course, the URL for the form page is also displayed and anyone can navigate directly to it bypassing the PayPal button. Is there anyway of hiding the URL or limiting access to the page without going through the PayPal transaction?

  2.  

  3. #2
    Senior Member justlivyalife's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham, UK
    Posts
    2,871
    Member #
    2374
    The simplest way to do this is to mask the page by including it in a frameset. Have the top frame just 1px high, and this will then mask the URL of the form page that you will be loading into the bottom frame.

    EDIT: Example coding.
    Code:
    <html>
    <head>
    <title>Frameset Page</title>
    </head>
    <frameset rows="1,*" border="0" frameborder="0">
      <frame name="header" scrolling="no" noresize target="main"
      marginwidth="0" marginheight="0">
      <frame name="main" marginwidth="0" marginheight="0" scrolling="auto">
    </frameset>
    </html>
    You would direct users after submitting the paypal form to the framset page, and the code for the frameset page is that shown above. This code isn't tested, I just conjured it up but it should work, though you should use CSS for margins & borders etc.
    justlivyalife - The future depends on what we do in the present. (Mahatma Gandhi)
    WDF Resources: WDF Rules
    Non-WDF: JavascriptSource | Dynamic Drive | phpBB | HTML-Kit | Winamp | Download Firefox | Morguefile

  4. #3
    Senior Member dotcommakers's Avatar
    Join Date
    Oct 2003
    Posts
    527
    Member #
    3342
    Liked
    1 times
    humm

    as i can think you should use "frame" or "php include" for the main page from where paypal submission is placed like

    in index page use two frame

    first frame [1] top.html
    [2] main.html [your main index html page]

    but be sure to make top.html frame size very small like
    give it hight 10px with no background..

    if u can give me url of your site.. i will build such page for you..

    best of luck

  5. #4
    Senior Member justlivyalife's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham, UK
    Posts
    2,871
    Member #
    2374
    This could also be done by launching the paypal form in a pop-up window, which would mask the URL from uneducated users, unless you disabled right click....

    EDIT: Not sure that is can actually be done however, but it is worth a shot I suppose.
    justlivyalife - The future depends on what we do in the present. (Mahatma Gandhi)
    WDF Resources: WDF Rules
    Non-WDF: JavascriptSource | Dynamic Drive | phpBB | HTML-Kit | Winamp | Download Firefox | Morguefile

  6. #5
    Senior Member dotcommakers's Avatar
    Join Date
    Oct 2003
    Posts
    527
    Member #
    3342
    Liked
    1 times
    i dont know how one can use popup in paypal buttons..

    please let me know "justlivyalife"

    how can i do it.

    thanks

  7. #6
    Senior Member
    Join Date
    Oct 2003
    Location
    Essex/Greater London
    Posts
    167
    Member #
    3433
    In the anchor tag just include the elemen target="_blank" so the code will look like this.

    Code:
    <a href="www.paypal.com/theaccount/" target="_blank"><img src="paypalbutton.gif" alt="PayPal button"></a>

  8. #7
    Senior Member billysielu's Avatar
    Join Date
    Dec 2003
    Posts
    179
    Member #
    4314
    _blank isnt accessible

  9. #8
    Senior Member billysielu's Avatar
    Join Date
    Dec 2003
    Posts
    179
    Member #
    4314
    password protect a page, like you would with a forum, give the password after payment.

  10. #9
    Senior Member
    Join Date
    Oct 2003
    Location
    Essex/Greater London
    Posts
    167
    Member #
    3433
    Originally posted by billysielu
    _blank isnt accessible
    How do you mean?

  11. #10
    Senior Member rosland's Avatar
    Join Date
    Jul 2003
    Location
    Norway
    Posts
    1,944
    Member #
    2096
    If you are using PHP (or any other serverside script), you can add an 'if' clause to the page that checks to see wether a parameter is set or not. If it is, then it will draw up your form. If it isn't, the form stays hidden. That way the URL would show the same adress regardless of the form beeing present or not. (meaning no one could see the form just by typing in the URL. The hidden parameter would need to be set)

    A Javascript pop-up window, would expose the url by beeing visible in the page source (as the script works clientside), while any server script would stay invisible to the user.
    S. Rosland


Page 1 of 2 1 2 LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 11:38 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com