1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

PHP Error

Discussion in 'PHP' started by kolucoms6, Jul 24, 2010.

  1. #1
    I cant process above PHP file. It doesnt even gives me any error.

    Can you guide where is the Issue ?
     
    kolucoms6, Jul 24, 2010 IP
  2. Zeh.

    Zeh. Peon

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    
    <?php
    
    $where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));
    
    // Checkbox handling
    $field_8_opts = $_POST['field_8'][0].",". $_POST['field_8'][1].",". $_POST['field_8'][2].",". $_POST['field_8'][3].",". $_POST['field_8'][4].",". $_POST['field_8'][5].",". $_POST['field_8'][6];
    
    $field_9_opts = $_POST['field_9'][1].",". $_POST['field_9'][2];
    
    mail("email@email.comt","Online Enquiry","Form data:
    
    Name: " . $_POST['field_1'] . "
    Company Name: " . $_POST['field_2'] . "
    Email ID: " . $_POST['field_4'] . "
    Phone Number: " . $_POST['field_3'] . "
    Website URL: " . $_POST['field_5'] . "
    Entity Type: " . $_POST['field_6'] . "
    Message: " . $_POST['field_7'] . "
    Dialing Method: " . $field_9_opts . "
    VOIP Reqd: " . $field_8_opts
    
    ); // There. There was a double quote.
    
    include("confirm.html");
    
    ?> 
    
    PHP:
     
    Zeh., Jul 24, 2010 IP
  3. kolucoms6

    kolucoms6 Active Member

    Messages:
    1,198
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    75
    #3
    Thanks a Lot.

    It worked.
     
    kolucoms6, Jul 24, 2010 IP