Jump to content

fazlionline

Member
  • Posts

    204
  • Joined

  • Last visited

Posts posted by fazlionline

  1. Hell all

    I am using DreamWeaver, and work in PHP.

    Everything is going fantastic, but when I want to include a file, my whole page is disordered and I cannot see it as WYSIWUG.

    My include code is :

    <?php include "menu_province_eng.php" ?>

    Can anyone tell me what the problem is?

  2. Hi all

    I have a simple form and php script which sends user information (form form) to my email.

    When I user enter his name, email and message in the form and press the send button, he get the error and no email go to my inbox

     

    PHP Code:

     

    <?php
    $to      = myemail@yahoo.com';
    $name = '$_POST[urname]';
    $message = '$_POST[urmessage]';
    $headers = 'From: webmaster@example.com' . "\r\n" .
       'Reply-To: webmaster@example.com' . "\r\n" .
       'X-Mailer: PHP/' . phpversion();
    
    mail($to, $name, $message, $headers);
    ?>

     

    Is anything wrong with the script?

    Thanks

  3. Hi everyone

    I made a database before a month.

    Now I want to insert the record in that, which includes user name, email and comments.

    When I post form to INSERT data in mysql, and error appears:

    Unknown column 'comments' in 'field list'

    I think that the field 'comments' may be named different in the database table.

    Now I want to see names of fields, is his possible through PHP?

    If yes, how can I do it?

×
×
  • Create New...