Jump to content

CheckRefer Problem


lew14

Recommended Posts

I am getting the following error for my php that resend activation email and passwords.  I do not understand so I cannot fix.  Just need understanding on how to fix as I am learning php now.

 

Errors are

For Password:

Fatal error: Call to undefined function checkRefer() in /home/traffic1/public_html/resend.php on line 13

 

 

For Resend:

Fatal error: Call to undefined function checkRefer() in /home/traffic1/public_html/resend.php on line 46

 

Here is what the errors look like.  I am not sure how to fix as I do not understand what I am doing.

Becoming programmer but have not gotten to this yet.

 

 

Password:

 

<?php

include("phpinc.incfile.php");

include($varsfile);

include($funcsfile);

mysql_connect($ssqldb_rhost, $ssqldb_ruser, $ssqldb_rpswd);

mysql_select_db($ssqldb_exchname);

$emailincs = mysql_result(mysql_query("SELECT content FROM templates WHERE type='emailincludes'"), 0);

$emailheader = mysql_result(mysql_query("SELECT content FROM templates WHERE type='emailheader'"), 0);

$emailfooter = mysql_result(mysql_query("SELECT content FROM templates WHERE type='emailfooter'"), 0);

if ($_POST['form'] == 'sent') {

$http_ref_page = $_SERVER['HTTP_REFERER'];

if ($check_http_referrer == 1) {

checkRefer($http_ref_page);

 

Resend

 

}

if ($_POST['formc'] == 'resenda') {

if ($check_http_referrer == 1) {

$http_ref_page = $_SERVER['HTTP_REFERER'];

checkRefer($http_ref_page);

}

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.