Menu

Warning error when submitting a form

Help
Bru
2003-10-25
2003-11-21
  • Bru

    Bru - 2003-10-25

    I'm testing a form on my local machine and when I click submit after completing the form, I receive the following error: "Warning: Failed to Receive in C:\FoxServ\www\phpform\forms\process.php on line 20

    Warning: Cannot add header information - headers already sent by (output started at C:\FoxServ\www\phpform\forms\process.php:20) in C:\FoxServ\www\phpform\forms\process.php on line 21
    Also, no data is being written to the table that I elected to be created.  Below I've included a copy of my lines 20 and 21 of the process.php file.  Please assist.

    mail("username@mydomain.com","ORDER",$message,"From: phpFormGenerator");
    header("Refresh: 0;url=//localhost");

     
    • Musawir Ali

      Musawir Ali - 2003-10-28

      Your SMTP server is probably not set in php.ini and therefore the mail function is choking.

       
    • Bru

      Bru - 2003-10-29

      I seem to be receiving the same error when I upload it to my website.  Where exactly would the php.ini appear there or should it even exist when the form is uploaded?

       
    • Musawir Ali

      Musawir Ali - 2003-10-29

      php.ini file is a configuration file for your PHP extensions installation. It exists "in all" installations of PHP. Location depends on OS and where it is installed.

       
    • Bru

      Bru - 2003-10-29

      I'll give it a shot when I get home and I'll let you know if it works or not.  THANKS!!!

       
    • Harry

      Harry - 2003-11-15

      I am having the same problem, but i am using online web server, how can i fix it

       
    • Harry

      Harry - 2003-11-15

      This is what i am getting
      Warning: copy(files/03_30_13_Untitled01.jpg): failed to open stream: No such file or directory in /home/virtual/site163/fst/var/www/html/phpform/forms/process.php on line 29

      Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site163/fst/var/www/html/phpform/forms/process.php:29) in /home/virtual/site163/fst/var/www/html/phpform/forms/process.php on line 42

       
    • Anonymous

      Anonymous - 2003-11-19

      Warning: fopen(forms/form1.html): failed to open stream: Permission denied in /home/realest/public_html/modules/phpform/process3.php on line 442
      cannot create file. Please help me to correct this problem..

       
    • Musawir Ali

      Musawir Ali - 2003-11-21

      harry.. looks like your problem is due to your webhost. Does it allow browser based file uploads? Because it looks like either the temporary file for uploads is not specified OR that your webhost immediately deletes the uploaded files somehow.

      vic, your problem is not related to this thread. You have just not set the the correct file/directory permissions. Please read the instructions carefully.. it says that you have to give read+write+execute permissions to the entire "forms" directory and everything inside it. That will get rid of that error.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.