Jump to content

Recommended Posts

getting Fatal error: Call to undefined function passchanger() in /home2/singlese/public_html/account.php on line 1309

 

code calling function

if ($_SERVER['REQUEST_METHOD'] == 'POST')
{
    	$formValues = $_POST;
    	$formErrors = array();

	if ($_POST['passChange'])
	{
    		if (!VerifyForm($formValues, $formErrors))
    		{
		DisplayForm($formValues, $formErrors);

	}
	passchanger();
}
   	else
   		ProcessForm($formValues);
        
}

function

function passchanger()
	{
		setVisibility('passChanged', 'inline');
	}

 

Link to comment
https://forums.phpfreaks.com/topic/204024-fatal-error-call-to-undefined-function/
Share on other sites

its here

if ($_SERVER['REQUEST_METHOD'] == 'POST')
{
    	$formValues = $_POST;
    	$formErrors = array();

	if ($_POST['passChange'])
	{
    		if (!VerifyForm($formValues, $formErrors))
    		{
		DisplayForm($formValues, $formErrors);

	}
	passchanger();
}
   	else
   		ProcessForm($formValues);
        
}

OK, let's try this:

 

put

echo 'the code that defines the function runs right after this';

on a line right before the

 

function passchanger()
{
  setVisibility('passChanged', 'inline');
}

 

This I think will illustrate my point.

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.