Solved

Captcha scritpt in my html form

Posted on 2013-06-06
4
471 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 52

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
change password links 7 73
Download a website to hdd 2 49
mysql update statement effect only some rows 4 26
Problem sending file attachments 8 23
This article discusses how to create an extensible mechanism for linked drop downs.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
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.

910 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

25 Experts available now in Live!

Get 1:1 Help Now