Email to a friend script problems


Posted on 16th Feb 2014 07:03 pm by admin

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 for that page (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). It holds the same URL no matter how many pages you go to and re-open the popup. 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 (blank where it should be on the email). A friend added:

Code: 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

No comments posted yet

Your Answer:

Login to answer
339 Like 38 Dislike
Previous forums Next forums
Other forums

Warning message
I've put a website that I was doing live and I'm getting this warning message when I try to add a ne

Intrastat Report Config in ECC 6.0 - goods Movement in EU countries
Colleagues, need ur help to understand the changes require in ECC 6 standard Report configuration se

preg-match with a string and numbers
Hi, I can't get the expression to work for my preg_match, what I'd like is for it to match the strin

Coding question?
Hey guys, I have a quick question. If I want to make a way for people to pay for health in my game,

Filtering Tables
Hello Thanks for any help any one can give Im very new to PHP..

I need to pull data for clien

file_put_contents and createimagefromjpeg
All,
I do somethings and then I have the following code:
file_put_contents('./test/'.$filename

reading xml faster than DB call?
I am trying to optimize a high traffic website, and I enabled a feature where there are three photos

"SEO" URLs
Hey, I'm wondering how to go about creating and using these types of URLs. I'm presuming it's PHP th

Removing Title From database problem
Hi again ! i am having an issue with updating database. When i update any price of a title it remove

How to find OS bit version
How can I tell the person browsing my site is running 32, or 64 bit operating system?

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash