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
Solved

Captcha scritpt in my html form

Posted on 2013-06-06
4
473 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 55

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

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

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

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

809 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