473,320 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Fatal error: Call to undefined function fe()

HI

all

I have a little issue with this php code. Below is the code

CODE: PHP


1.<?
2. include("../includes/common.php");
3. include("../path.php");
4.
5.$func_ary=array("dental_view","add_data","add_da ta2","mail_data","thanks");
6.if(fe($_REQUEST[act]))
7.{
8. $_REQUEST[act]($_REQUEST[msg]);
9. die();
10.}
11.dental_view();
12.die();
13.
14.
15.############################################### #
16.function dental_view()
17.{
18. //global $Server_View_Path;
19. $t=new Template("templates");
20. $t->set_file("MyFileHandle","dental_tourism_quote_ste p1.htm");
21. $t->set_var(array("SERVER_PATH"=>$Server_View_Path,
22. "act"=>"add_data",));
23. $t->parse("MyOutput","MyFileHandle");
24. $t->p("MyOutput");
25.}
26.############################################### ####
27.function add_data()
28.{
29. //global $Server_View_Path;
30.
31. $t=new Template("templates");
32. $t->set_file("MyFileHandle","dental_tourism_quote_ste p2.htm");
33. $f=""; $p="";
34. if($_REQUEST)
35. {
36. if($_REQUEST[dp])
37. {
38. $p=implode(",",$_REQUEST[dp]);
39. }
40. $_REQUEST[dp]=$p;
41.
42. if($_REQUEST[db])
43. {
44. $b=implode(",",$_REQUEST[db]);
45. }
46. $_REQUEST[db]=$b;
47. }
48.
49. foreach($_REQUEST as $k=>$v)
50. {if($k!="act")
51. $hidden.="<input type=\"hidden\" name=\"$k\" value=\"$v\" >";
52. }
53.
54. $t->set_var(array("hidden"=>$hidden,"SERVER_PATH"=>$S erver_View_Path,
55. "act"=>"add_data2",));
56. $t->parse("MyOutput","MyFileHandle");
57. $t->p("MyOutput");
58.}
59.###########################################
60.function add_data2()
61.{
62. //global $Server_View_Path;
63. $t=new Template("templates");
64. $t->set_file("MyFileHandle","dental_tourism_quote_ste p3.htm");
65. if($_REQUEST)
66. {
67. if($_REQUEST[suffer])
68. {
69. $_REQUEST[suffer]=implode(",",$_REQUEST[suffer]);
70. }
71.
72. if($_REQUEST[undergone])
73. {
74. $_REQUEST[undergone]=implode(",",$_REQUEST[undergone]);
75. }
76. }
77.
78. foreach($_REQUEST as $k=>$v)
79. {
80. if($k!="act")
81. $hidden.="<input type=\"hidden\" name=\"$k\" value=\"$v\" >";
82. }
83. $t->set_var(array("hidden"=>$hidden,"SERVER_PATH"=>$S erver_View_Path,
84. "act"=>"mail_data",));
85. $t->parse("MyOutput","MyFileHandle");
86. $t->p("MyOutput");
87.}
88.
89.
90.###############################################
91.function mail_data()
92.{
93.
94. //global $Server_View_Path;
95. $t=new Template("templates");
96. $t->set_file("MyFileHandle","mail.htm");
97.
98. if($_REQUEST)
99. {
100. foreach($_REQUEST as $k => $v)
101. {
102. $t->set_var(array( "$k" => $v,));
103. }
104. }
105. $t->parse("MyOutput","MyFileHandle");
106. $message=$t->get("MyOutput","MyFileHandle");
107. // send_mail("r",$_REQUEST[email_address],"rashmim","rashmi@cynets.com","Online appointment form submitted.",$message);
108. send_mail_new("CompleteDentalCare","info@completed entalcare.co.in","completedentalcare.co.in","Info@ completedentalcare.co.in","Online appointment form submitted.",$message);
109. //send_mail_new("CompleteDentalCare",$_REQUEST[email_address],"completedentalcare.co.in","Info@completedentalca re.co.in","Online appointment form submitted.",$message);
110.
111. if(!get_row_con_info("dc_email","Where `dc_email`='$_REQUEST[email_address]'", "dc_email", $email))
112. {
113. $SQL="INSERT INTO `dc_email` (`dc_email_id` , `dc_email` ) VALUES ('', '$_REQUEST[email_address]')";
114. ei($SQL);
115. }
116. thanks();
117.}
118.#########################################
119.function thanks()
120.{
121. //global $Server_View_Path;
122. $t=new Template("templates");
123. $t->set_file("MyFileHandle","thanks.htm");
124. $t->set_var(array("SERVER_PATH"=>$Server_View_Path) );
125. $t->parse("MyOutput","MyFileHandle");
126. $t->p("MyOutput");
127.}
128.?>

While executing this code . I get error.

The error is :
Fatal error: Call to undefined function fe() on line 6
Apr 17 '08 #1
4 2738
Markus
6,050 Expert 4TB
PHP is telling you the function fe() hasn't been defined (created).

Is this a function you have created?

Where is this function?

When posting code on the forums you use code tags.
Apr 17 '08 #2
PHP is telling you the function fe() hasn't been defined (created).

Is this a function you have created?

Where is this function?

When posting code on the forums you use code tags.

hi

Markusn00b

thanks for replying

atleast you tell me how to write code tag

this i have wrote

code : php

and line number to the code

if i'm still making mistake . Then please help me to figure out my mistake in code tag.

if u r online please reply me as soon as possible.
I will be greatful to you.
Apr 17 '08 #3
TheServant
1,168 Expert 1GB
You know how you write [code ]then your code[/code ]?

Well try:
[code=php ]then your code[/code ]

Or even shorter:
[php ]then your code[/php ]

(remove the spaces)
Apr 17 '08 #4
Markus
6,050 Expert 4TB
hi

Markusn00b

thanks for replying

atleast you tell me how to write code tag

this i have wrote

code : php

and line number to the code

if i'm still making mistake . Then please help me to figure out my mistake in code tag.

if u r online please reply me as soon as possible.
I will be greatful to you.
Read the guidelines

Regards
Apr 17 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Daniel Hansen | last post by:
I am getting a "Fatal error: Call to undefined function: imagecreatefromjpeg() in..." error in one of my scripts, and after doing a bit of searching on the 'net I found various messages relating to...
5
by: Randell D. | last post by:
Folks, I feel like pulling my hair out - I tried unsuccessfully over the past few days to install ImagMagick but because of version conflicts and missing libraries I had to give up. I originally...
4
by: gc | last post by:
I'm a PHP and MySQL newbie. I have a feeling a lot of you may have seen this before. I'm teaching myself PHP/MySQL and trying to setup a guestbook. I'm running latest versions of Apache, PHP and...
8
by: Tim Tyler | last post by:
I'm getting fatal errors when executing code - and my error handler is failing to trap them - so I get no stack backtrace :-( The error I am getting is: "Fatal error: Call to a member function...
1
by: drewmania001 | last post by:
i've read various info on the web including the following http://php.mirrors.ilisys.com.au/manual/en/ref.mysqli.php mySQL Version 4.1.16 PHP Version 5.1.2 with Zend Engine v2.1.0 OS Windows...
2
by: salvadorvp | last post by:
Hi, I have the following code that gives me this odd error message at a line of code inside the PEAR libraries: "Fatal error: Call to undefined function: MDB2_Driver_mssql::getMessage(). in...
9
by: java | last post by:
Hey there, I just removed an elderly PHP4-Installation from my Windows-Box and installed PHP 5.2.1. I used the PHP4-Module as local batchfile- interpreter by E:\ersDHCP>php ./extractLog.php ...
3
by: Ming | last post by:
I am new to php5 programming :) I redirect users to another server to login. After they login successfully, they will be redirected to test.php. The server provides xml_rpc interface so I can...
1
by: inetquestion | last post by:
I am getting this error: "Fatal error: Call to undefined function socket()" even after reinstalling php4 and php5 with the following configuration: ./configure --with-gd=/usr/local --with-mysql...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.