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

PHP error (line 38) my website
Hello everyone, I'm new on this
and I got a web site thats got a error not showing the photos on<

php not working written for consumption of slots
1. Here is the function where i will be allowed to consume the slot booked by me.

2. Here i c

noob cURL help
I have a pretty basic form that I need to cURL post to a file in my includes folder (includes/login.

While Problem
i am having a problem with a while statement here is the code
Code: [Select]<?php
sess

Need help adding a timestamp to my filename/variable
Hello,

I'm kind of stupid when it comes to php and I need a tiny bit of help. I've got a f

SCRIPT ERROR
Here is the CONTACT FORM I made for our website:

<form id="form1" name="

reating a background image
I am building a site in drupal and have a php form in it, due to certain annoyances with module buil

tell csv import script to ignore blank rows?
Hi i have the below script but i get an error if a row is blank ie a return in the csv file at the e

cURL proxy
Okay here is the thing... i know how to add proxys

Code: curl_setopt($ch, CURLOPT_PROXYTYPE,

Can php detect connection speed and thereafter swap out elements?
No code to post, lads, yet. Just looking for a yay or nay at this stage:

Can a php script be

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