Fatal error: Call to undefined function fe()

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nickyspace
    New Member
    • Mar 2008
    • 14

    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=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
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #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.

    Comment

    • nickyspace
      New Member
      • Mar 2008
      • 14

      #3
      Originally posted by markusn00b
      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.

      Comment

      • TheServant
        Recognized Expert Top Contributor
        • Feb 2008
        • 1168

        #4
        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)

        Comment

        • Markus
          Recognized Expert Expert
          • Jun 2007
          • 6092

          #5
          Originally posted by nickyspace
          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

          Comment

          Working...