Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8037921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:04:10+00:00 2026-06-05T03:04:10+00:00

As I said, all the html files are set up. The site uses mostly

  • 0

As I said, all the html files are set up. The site uses mostly jquery mobile, and I first tried to use coldfusion. However, this created a lot of problems, as I couldn’t change the filetypes form .html to .cfm without creating a lot of problems. All I need to do is validate a couple fields, and email it to myself. is there a good way to do this without changing much of the existing code?

I’ve been looking at PHP, but I’m new to server-side scripting, so I’m not sure what’s required. Will this only work if the server AND each machine has php installed, or does the server just have to have PHP?

Thanks for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T03:04:11+00:00Added an answer on June 5, 2026 at 3:04 am

    Simple answer, only the server hosting the pages will need PHP. Is the server running IIS, Apache or like?

    Using Apache as an example, you can do something like:

    AddType application/x-httpd-php .php .htm .html
    AddHandler x-httpd-php .php .htm .html
    

    This will tell Apache to treat all .html and .htm files as PHP. If there is no PHP within the files, it will server just the HTML, which means no issues for you on files which dont need to be changed.

    Before I forget, to send the email, it is one command:

    mail('youraddress@domain.com', 'Subject', 'Payload', 'Extra Headers if Needed');
    

    If you create a form in HTML, send it to sendmail.html, or whatever your action is, you can use:

    $_POST['field'];
    

    Where field equals the name attribute on the input. Example:

    <input name="field">
    

    You can then do:

    mail('youraddress@domain.com', 'Subject', $_POST['field'], 'Extra Headers if Needed');
    

    That will email you the contents of $_POST[‘field’].

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I heard people said php server site script cannot communicated with html and javascript
Title said it all. Some context: I got a search mechanism - search view,
Somebody said that when your PHP code and application use global variables then it
in this answer he said that i can use RIA services while creating my
Facebook cannot grasp my og:image files and I have tried every usual solution. I'm
It is said that Javascript code should be all placed at the end of
First of all, this question is purely theoretical. Fact is, whether it's possible or
First of all, I've never really used APIs before, and I've never used the
We have translated one of our pages to french and all the html within
Thank you in advance for all your help. I'm trying to use google maps

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.