Jump to content

[SOLVED] call to undefined function, gotta be an easy fix


php_ninja

Recommended Posts

ok, i don't know what i am doing wrong here, have a look. i get a "call to undefined function: display_form_text()"

 

<?php

// class and function definitions for the id maker

class formInfo {
var $form_text = "form_email";

function __construct($email_in) {
	$this->form_text = $email_in;

}

function display_form_text() {
	print("ID for email address: ");
	print($this->form_text);
}
}
$form_email = new formInfo($_POST['email']);
$form_email = display_form_text();
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.