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=arr ay("dental_view ","add_data","a dd_data2","mail _data","thanks" );
6.if(fe($_REQUE ST[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_Pa th;
19. $t=new Template("templ ates");
20. $t->set_file("MyFi leHandle","dent al_tourism_quot e_step1.htm");
21. $t->set_var(array( "SERVER_PATH"=> $Server_View_Pa th,
22. "act"=>"add_dat a",));
23. $t->parse("MyOutpu t","MyFileHandl e");
24. $t->p("MyOutput" );
25.}
26.############ ############### ############### #########
27.function add_data()
28.{
29. //global $Server_View_Pa th;
30.
31. $t=new Template("templ ates");
32. $t->set_file("MyFi leHandle","dent al_tourism_quot e_step2.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($_REQUE ST as $k=>$v)
50. {if($k!="act")
51. $hidden.="<inpu t type=\"hidden\" name=\"$k\" value=\"$v\" >";
52. }
53.
54. $t->set_var(array( "hidden"=>$hidd en,"SERVER_PATH "=>$Server_View _Path,
55. "act"=>"add_dat a2",));
56. $t->parse("MyOutpu t","MyFileHandl e");
57. $t->p("MyOutput" );
58.}
59.############ ############### ############### #
60.function add_data2()
61.{
62. //global $Server_View_Pa th;
63. $t=new Template("templ ates");
64. $t->set_file("MyFi leHandle","dent al_tourism_quot e_step3.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($_REQUE ST as $k=>$v)
79. {
80. if($k!="act")
81. $hidden.="<inpu t type=\"hidden\" name=\"$k\" value=\"$v\" >";
82. }
83. $t->set_var(array( "hidden"=>$hidd en,"SERVER_PATH "=>$Server_View _Path,
84. "act"=>"mail_da ta",));
85. $t->parse("MyOutpu t","MyFileHandl e");
86. $t->p("MyOutput" );
87.}
88.
89.
90.############ ############### ############### #####
91.function mail_data()
92.{
93.
94. //global $Server_View_Pa th;
95. $t=new Template("templ ates");
96. $t->set_file("MyFi leHandle","mail .htm");
97.
98. if($_REQUEST)
99. {
100. foreach($_REQUE ST as $k => $v)
101. {
102. $t->set_var(arra y( "$k" => $v,));
103. }
104. }
105. $t->parse("MyOutpu t","MyFileHandl e");
106. $message=$t->get("MyOutput" ,"MyFileHandle" );
107. // send_mail("r",$ _REQUEST[email_address],"rashmim","ras hmi@cynets.com" ,"Online appointment form submitted.",$me ssage);
108. send_mail_new(" CompleteDentalC are","info@comp letedentalcare. co.in","complet edentalcare.co. in","Info@compl etedentalcare.c o.in","Online appointment form submitted.",$me ssage);
109. //send_mail_new(" CompleteDentalC are",$_REQUEST[email_address],"completedenta lcare.co.in","I nfo@completeden talcare.co.in", "Online appointment form submitted.",$me ssage);
110.
111. if(!get_row_con _info("dc_email ","Where `dc_email`='$_R EQUEST[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_Pa th;
122. $t=new Template("templ ates");
123. $t->set_file("MyFi leHandle","than ks.htm");
124. $t->set_var(array( "SERVER_PATH"=> $Server_View_Pa th));
125. $t->parse("MyOutpu t","MyFileHandl e");
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
4 2770 Markus 6,050
Recognized Expert Expert
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.
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.
TheServant 1,168
Recognized Expert Top Contributor
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)
Markus 6,050
Recognized Expert Expert
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
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 a
failure to have the GD library installed. However, my phpinfo() reports
(in the Apache GD section):
GD Support enabled
GD Version bundled (2.0 compatible)
GIF Read Support enabled
PNG Support enabled
|
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 choose ImageMagick because I've
heard so much about it.
I then decided to go with the inbuilt GD tools since I'm using PHP 4.3.3
that I compiled with --with-gd. I can use some of the image functions in
PHP so why is this one undefined? What...
|
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 MySql on WIN 2000. PHP is
installed from the zip file. When serving php docs (code snippets below) I
get the messages:
"Fatal error: Call to undefined function mysql_connect() "
"Fatal error: Call to undefined function mysql_pconnect() "
|
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 fetchRow() on a non-object."
What are the available options here?
Am I supposed to check I have a real object whenever I perform
|
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 NT SERVER(2003) 5.2 build 3790
see http://drew.bounceme.net/phpinfo.php for more details
| |
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 C:\php\PEAR\lib\MDB2.php on line
1921"
My code is a simple submit processing form for a login page:
<?php
|
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
which was perfectly alright and worked well. But now PHP5 fails to run
the same script without any modification!
|
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 communicate with it. After running my
scripts, I get this error:
Fatal error: Call to undefined method XML_RPC_Response::kindOf() in /
usr/share/PEAR/XML/RPC.php on line 1972
|
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 --enable-
libgcc --with-gettext --enable-sockets.
From all the articles I've found on this problem adding --enable-
sockets fixed the problem, but no such luck this time. the script I
was trying to run can be found here: ...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |