Solved

Captcha scritpt in my html form

Posted on 2013-06-06
4
469 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
  • 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 51

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
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.

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now