Jump to content

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

Link to comment
Share on other sites

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 = '-fwalterhughes@hawaii.rr.com';. 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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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