Solved

Captcha scritpt in my html form

Posted on 2013-06-06
4
476 Views
Last Modified: 2013-06-06
Hi,
I downloaded a email form with captcha  and i uploaded to my server to test it, but i am getting the php script in the  fields, I am attaching my file, but this is what the snapshot looks like when i uploaded it to the server
snapshot of email form
I would like to know how to fix this email form with the cpatcha
test1.html
0
Comment
Question by:imagekrazy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 18

Assisted Solution

by:nap0leon
nap0leon earned 200 total points
ID: 39225878
Is you test page ".html" or ".php"?
It needs to be ".php" for the PHP script to run.
0
 

Author Comment

by:imagekrazy
ID: 39225921
Thank you for that advice, I tested it ,but now i have an error message, this is what  it  is saying;
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/c/i/r/circleimage/html/myvebsite/NewFrntPageJun2013/test1.php:19) in /home/content/c/i/r/circleimage/html/myvebsite/NewFrntPageJun2013/test1.php on line 83
0
 
LVL 57

Accepted Solution

by:
Julian Hansen earned 300 total points
ID: 39226035
You have included the script incorrectly - if you look at the output you have a document within a document

The first php script should come out and be moved to the top of the file.

You need to remove the multiple doctype's and <head> statements

I have attached a partially reworked file - given you had multiple title's and head elements it was not possible to know what you wanted and what had to be thrown out.
test.php
0
 

Author Closing Comment

by:imagekrazy
ID: 39226102
Wow, thanks ,I also stated "ob_start();" before the session start, and moved the code up  to the top of the page and changed the file name to php and bingo, It works!!
thank you very much!
0

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question