View Full Version : Send email to a friend script problems

01-08-2010, 09:32 PM
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.

Old Pedant
01-12-2010, 12:58 AM
Doesn't sound like PHP problem. Sounds more like JS.

Can you show the page live?

01-12-2010, 01:18 AM
Sent you a message.