Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Pull Down not working in contact form.

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31964

    I am using a contact form similar to this…
    https://css-tricks.com/nice-and-simple-contact-form/

    All works except the choice for my dropdown is not appearing in the sent email.

    here is some of the code…









    php contact engine…

    $Message = Trim(stripslashes($_POST));
    $Name = Trim(stripslashes($_POST));
    $Tel = Trim(stripslashes($_POST));
    $Email = Trim(stripslashes($_POST));


    // prepare email body text
    $Body = "";
    $Body .= "Help: ";
    $Body .= $Help;
    $Body .= "n";
    $Body .= "Name: ";
    $Body .= $Name;

    Thanks

    #55881
    TT_Mark
    Member

    For starters, don’t mix uppercase and lowercase tags, it just looks ugly.

    Secondly, your form doesn’t work because you haven’t given the options a value attribute.

    It should be:

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.