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

  • Home
  • SEARCH
  • 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 7855681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:27:23+00:00 2026-06-02T20:27:23+00:00

I am pretty new to web programming and am trying to get a personal

  • 0

I am pretty new to web programming and am trying to get a personal website up and running. I have a contact form which does not seem to execute anything. I have poured over the web looking for the error in my code, but I have hit a wall.

scripts in header

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="http://html5form.googlecode.com/svn/trunk/jquery.html5form-1.5-min.js"></script>

html5 form

<form action="message.php" method="post" id="message_form">
    <fieldset>
        <input type="email" name="email" id="email" title="Email address" maxlength="40" placeholder="Email Address" autocomplete="off" required />
        <br />
        <input type="text" name="subject" id="subject" title="Subject" maxlength="60" placeholder="Subject" autocomplete="off" required />
        <br />
        <textarea name="message" id="message" title="Message" cols="30" rows="5" maxlength="1000" placeholder="Message" required></textarea>
        <br />
        <input type="submit" value="Send" id="submit" name="submit"/>
    </fieldset>
</form>

script in body (linked)

$('#message_form').html5form({
    allBrowsers : true,
    responseDiv : '#response',
    messages: 'en',
    messages: 'es',
    method : 'GET',
    colorOn :'#0d85a5',
    colorOff :'#d2d2d2'
});

message.php

<?php
if ('POST' === $_SERVER['REQUEST_METHOD']) {
$to = "rbblakeley@gmail.com";
$from = "r.blakeley@yahoo.com";
$subject = "test subject";
$message = "test message";

$body = "$from\n $message";

echo "Your message has been sent!";
mail($to, $subject, $body);
} else {
echo "Rapscallions! Please try again.";
}
?>

testing on a local MAMP server and uploading to my remote host (bluehost), nothing happens when I hit ‘send’ except the forms resets to placeholder values. 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-02T20:27:25+00:00Added an answer on June 2, 2026 at 8:27 pm

    You forgot to give your submit button a name

    <input type="submit" name="Submit" value="Send" id="submit"/>
    

    A better way to do this might be instead of

    if(isset($_POST["submit"])){
    

    Use:

    if ('POST' === $_SERVER['REQUEST_METHOD']) {
    

    This method doesn’t check for a specific variable. It checks the request method and if it’s POST then the form was submitted.

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

Sidebar

Related Questions

Am pretty new to web services and have been trying to implement Soap Faults.
I'm pretty new to web programming and I am trying to simply add text
I'm pretty new to web programming, reading a book on ASP.NET, and I notice
I'm terribly new to web development. I'm trying to make a pretty simple site
I'm pretty new to web programming and I'm currently developing a web back end
I'm pretty new to web development, so I'm just trying to see if I
I'm pretty new to web design and have recently been working on an amatuer
I am pretty new to web services. I am not able to find the
I'm pretty new to SharePoint Web Part development, so I'm not sure the best
I'm pretty new to JWS. I have a web application ( several web services

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.