Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Apr 2009
    Posts
    63
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Send email to a friend script problems

    I have this send-to-a-friend script with 2 issues:


    1) When you open the form popup on a particular page, it includes the correct URL (viewable on the popup form). But if you close it, go to another page, and open the popup again -- it shows the URL of the previous page (including it with the email). Refresh does not help. You have to clear cookies, temp files, history (or one of those) in order to pull up the correct URL for the applicable page.

    2) A random problem where sending the email does not include the page URL. A friend added if ($refurl == '')
    $refurl = 'http://www.domain.com';
    at line 61 of recform.php so users will at least get the homepage URL when this problem occurs.

    See attached files.

    Help on these problems would be greatly appreciated.
    Attached Files Attached Files

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,652
    Thanks
    80
    Thanked 4,640 Times in 4,602 Posts
    Doesn't sound like PHP problem. Sounds more like JS.

    Can you show the page live?
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #3
    New Coder
    Join Date
    Apr 2009
    Posts
    63
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Sent you a message.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •