Jump to content
Pardon our ads (a necessary update) ×

Fatal error: Call to undefined function: filter_input()


keaauBoy

Recommended Posts

I am attempting to write PHP to send form data to email. I completed a Lynda.com tutorial "Introducing PHP" by David Powers

When I test the Pges on my machine with xampp installed, everything works. I have no mail function on my msachine so I uploaded to a folder on my website to test.

I get the above error 'Fatal error: Call to undefined function: filter_input()' and the email format validation does not function. Can someone help me?formTest.phpmail_process.php

According to this post, for what appears to be the same issue, the OP found that his host supported PHP5 but parsed php files using PHP4 by default. He solved the issue by naming his files with a .php5 extension. I know some hosts also allow you to set the default parsing method.

the OP's phpinfo() output lists a Windows 7 Pro operating system, which is probably his development system, not the web host where he is having the error at.

 

so, what that output from a phpinfo() statement on your web hosting or was that on your localhost xampp system?

I was abble to upload my php pages to an associates server who supports php 5. Everything worked perfectly including the email format validation. However when I clicked the submit button the page returned to the intitial format with blank fields in the form. When I test the pages on my xampp server on my machine and hit submit it brings up the thanks page. I know I don't have server side 'mail' capabilities but the page has code that should at least give me an error message 'Sorry your mail could not be sent.' I am not sure of the code to authenticate...... authenticate = '[email protected]';. All who helped with the last problem with my web host, thank you. Could you help me with this final problem?formTest.phpmail_process.phpthanks.php

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.