Jump to content

AndyB

Staff Alumni
  • Posts

    5,465
  • Joined

  • Last visited

    Never

Posts posted by AndyB

  1. Although it may not be needed in this code requirement (although there might still be 'one more thing'), you might want to use the trim() function to remove any leading/trailing spaces that interfere with counting the number of characters, etc.

  2. I wish I could find one of the many times I've answered questions about image submit ...

     

    When an image is clicked, the x and y coordinates of where it was clicked relative to its upper-left corner are passed along. That's how image maps work (and how compliant browsers treat image submits).

     

    With an image submit button, $_POST['submit'] has no value. The coordinate values do exist: you can check for either $_POST['submit_x'] or $_POST['submit_y']. That'll work - assuning that you have named your image submit as you did in your first example posted code for a 'normal' submit.

  3. Take a really close look at your code as posted here. You are using two single quotes where you need a double quote ... ' and ' are NOT the same as "

     

    Fix ALL instances of those errors and then tell us what happens.  And please wrap your posted code in code tags here in future.

     

    If you have an error, don't just tell us it's the same error; give the full error message and if it refers to a specific line, identify that line in your code - it only takes you a few seconds.  That way, more people are likely to take the time to help you.

  4. I rather think the Terms of Sale and Terms of Use have been plagiarized. One clue is that links lead to a site other than yours. If those are actually yours to use, get the font right, undo the center alignments, and fix the 'smart quotes' and other MS Word crud that displays as weird characters.

  5. Don't confuse $message and $messge.

     

    $name = $_POST['name']; // assuming the input is named name

    $message = "FULL NAME: ". $name. "/r/n"; // that's fine

    // and if there are more input vars, concatenate those into $message...

    // $message.= "ADDRESS: ". $address. "/r/n";

  6. To follow up on runnerjp's post:

     

    Replace

    <form action="" enctype="multipart/form-data" id="form">

     

    with

     

    <form action="mailer.php" method="post" id="form">

     

    but otherwise you can leave your code alone.

     

    Upload his mailer.php script and keep your fingers crossed ...

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.