*** Solved ***Random Header Code Appears After Submitting the form

Issues related to forms.
Post Reply
User avatar
ashutoshkushwaha
 
 
Posts: 22
Joined: Thu Mar 08, 2018 7:49 am
Location: Jaipur
Contact:

*** Solved ***Random Header Code Appears After Submitting the form

Post by ashutoshkushwaha »

Hi, I just upgraded to WWB16 and created a website. I have added a contact form on the webpage and the extension of the page is .php
Files are hosted on GoDaddy and form is being processed through in built in php form processor script (option available in WWB16 in form settings). I have enabled "Process variables in success page" option to show the user data on the success page after submission of the form. Everything is working fine, but on the success page, I am getting php header codes on the top of the page in a white area which makes the whole experience aweful.
I am attaching the screenshot of the code as well which shows up.

Can someone let me know how can I fix it so that this white area with garbage code doesn't appear after submitting my form. I have uploaded the site on http://propctechnician.com/ and the form is at the center bottom of the homepage. Help would be appreciated.
Image
Ashutosh Kushwaha
User avatar
Pablo
 
Posts: 22472
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Random Header Code Appears After Submitting the form

Post by Pablo »

This is not random code. This is the PHP code of the form processor!

Tips:
- the file extension of the page should be set to PHP.
- the success and error page should not have PHP code.

See also the FAQ:
viewtopic.php?f=10&t=32967
User avatar
ashutoshkushwaha
 
 
Posts: 22
Joined: Thu Mar 08, 2018 7:49 am
Location: Jaipur
Contact:

Re: Random Header Code Appears After Submitting the form

Post by ashutoshkushwaha »

Pablo wrote: Sun Sep 05, 2021 7:00 am This is not random code. This is the PHP code of the form processor!

Tips:
- the file extensions of the page should be set to PHP.
- the success and error page should not have PHP code.

See also the FAQ:
viewtopic.php?f=10&t=32967
Thank you Pablo!

I changed the extension of success and failed pages to .html and removed the contact form from these pages and it fixed the problem. Thanks again for your quick response.
Ashutosh Kushwaha
Post Reply