Jump to content

hamza

Members
  • Posts

    321
  • Joined

  • Last visited

Posts posted by hamza

  1. Listen i think you want to redirect to the page right.

    its quite simple write the same code

    just when you submit the form from first page just pass the

    one hidden value.like

    if($_POST['hidden_value']==1 ) //checking form is submitted.or not

    {

          if (isset($_POST['login']))

          {

            header('Location: sheets.php' )

            else if(isset($_POST['go']))

            {

            header('Location: sheets.php')

          }

            else {}

    }

     

    NOTE :

    there is no need to mention the local server name like you have use the localhost and http dont use this and try the above code.

    And increase the output buffer size and you will got your answer .

    take care buddy}

  2.     This is my code

     

    <body>

    <?php

    // # Is the OS Windows or Mac or Linux

    if (strtoupper(substr(PHP_OS,0,3)=='WIN')) {

      $eol="\r\n";

    } elseif (strtoupper(substr(PHP_OS,0,3)=='MAC')) {

      $eol="\r";

    } else {

      $eol="\n";

    }

     

    # Common Headers

    $headers .= 'From: Webdev01 <webdev01@yahoogroups.com>'.$eol;

    $headers .= 'Reply-To: Webdev01 <webdev01@yahoogroups.com>'.$eol;

    $headers .= 'Return-Path: Webdev01 <webdev01@yahoogroups.com>'.$eol;

    $headers .= "Message-ID: <TheSystem@".$_SERVER['SERVER_NAME'].">".$eol;

    $headers .= "X-Mailer: PHP v".phpversion().$eol;          // These two to help avoid spam-filters

    # Boundry for marking the split & Multitype Headers

    $headers .= 'MIME-Version: 1.0'.$eol;

    //$headers .= "Content-type: text/plain; charset=iso-8859-1".$eol;

    $headers .= "Content-type: text/html; charset=iso-8859-1".$eol;

     

     

    $to = "myemail@someone.com";

    $subject = "Test Mail";

    $msg = "Hi, <br> Testing";

    if(mail($to, $subject, $msg, $headers))

    echo "mail sent....";

    else

    echo "error...";

    ?>

    </body>

     

    Problem :

    when i was send this kind of code it will show me that mail is send successfully .

    but in actually mail is not sende.

    And my php.ini

    and please tell me about the php.ini

    file

    thanks in advance

     

     

     

     

     

     

     

     

  3. Adding in any menu is quite simple.

          ...............................................................

          Just select the information or data from the database.

          Use the <select> tag and put the selected information

          into the <option> tag .

          And your menu will be created.

          its quite simple just try it .

          Reply me if you face any problem. ??? :-[

          .............................................................

×
×
  • 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.