Jump to content

Fixxer

Members
  • Posts

    25
  • Joined

  • Last visited

    Never

Posts posted by Fixxer

  1. Im no expert, but I would guess you might want to create a page (perhaps log.php) that takes in action codes, and logs accordingly. Then you would have to go back, alter all of your pages to send the code when an event takes place, and then load the page with the script. Atleast that is where I would start. Again I stress I am no expert.

  2. If the server has the PHP framework on it, it can run PHPBB no matter what else you are running on the server.

    If the server does not have the PHP Framework, it cannot run anything PHP related.

     

    So as long as your server has the PHP framework, PHPBB will run, even if you are also making web pages out of ASP.

  3. Okay this works now. Thanks!!!

     

    <?php
    
    if(isset($_POST['frm_action1']) && $_POST['frm_action1']==1)
    {
    
    $sender = "TMD-Music.com";
    $name = $_POST['name'];
    $date = $_POST['dd'];
    $month = $_POST['mm'];
    $year = $_POST['yy'];
    $type = $_POST['type'];
    $phone = $_POST['phone'];
    $email = $_POST['email'];
    $text = $_POST['questions'];
    $today = date("l, F j, Y, g:i a") ;
    
    $body ="This message was auto generated by TMD-Music.com on: $today
    Name: $name
    Date Of Event: $date / $month / $year
    Type Of Event: $type
    Phone Number: $phone \n
    E-Mail: $email \n
    Message: $text";
    
    mail("natekrygier@gmail.com","TMD Music Inquiry",$body,$sender);
    }
    else
    { 
    echo "Error." ;
    }
    
    
    ?>
    
    
    Your request has been sent. 
    <br /> <br />
    <a href="http://www.tmd-music.com"> Click here to return to TMD-Music.com </a>
    <br /> <br />
    
    ------------------------------------------------------
    <br /> <br />
    
    <?php echo $name ; ?>

  4. Okay, that is sending now, but the date is mssed up.

    Also I know that the variable names for message were not matching up earlier, but I have changed that.

     

    Here is what is mailed.

     

    ----------------------------------------------------

     

    TMD-Music.com

     

    This message was auto generated by TMD-Music.com on: {$today}

    Name: "Joe"

    Date Of Event: "12" / "18"/ "07""

    Type Of Event: "Fun"

    Phone Number: "555-5555"

    E-Mail: "joe@aol.com"

    Message: ""

  5. Yes, It is correctly pasted I re copied and pasted both files.

     

    And I got the one you sent, and this is what the e-mail contained.

     

    TMD-Music.com

     

    This message was auto generated by TMD-Music.com on: {$today}

    Name: {$name}

    Date Of Event: {$date} / {$month} / {$year}"

    Type Of Event: {$type}

    Phone Number: {$phone}

    E-Mail: {$email}

    Message: {$text}

     

  6. contact.php

     

    <table bgcolor="white" border="0" align="left" cellpadding="5" width="570">
    <tr bgcolor="white">
    <td bgcolor="white">
    
    <h3>E-Mail Us</h3>
    <br />
    <br />
    
    <form name="contact" action="mailer.php?" method="post" enctype="text/plain">
    
    Name: <input type="text" name="name" size="25">
    
    <br />
    
    Date Of Event (dd / mm / yy): <input type="text" name="dd" size="2"> <input type="text" name="mm" size="2"> <input type="text" name="yy" size="2">
    
    <br />
    
    Type Of Party: <input type="text" name="type" size="30">
    
    <br />
    
    Phone Number: <input type="text" name="phone" size="12">
    
    <br /> 
    
    E-Mail Address: <input type="text" name="email" size="25">
    
    <br />
    
    Questions: <textarea name="questions" rows="5" cols="60"></textarea>
    
    <br />
    <br />
    
    <input type="submit" value="Submit" name="submit"> <input type="reset" value="Reset" name="reset">
    
    </form>
    
    
    </td>
    </tr>
    </table>

     

    mailer.php

     

    <?php
    
    
    $sender = "TMD-Music.com";
    
    $name = $_POST['name'];
    $date = $_POST['dd'];
    $month = $_POST['mm'];
    $year = $_POST['yy'];
    $type = $_POST['type'];
    $phone = $_POST['phone'];
    $email = $_POST['email'];
    $text = $_POST['text'];
    
    $today = date("l, F j, Y, g:i a") ;
    
    $body ="This message was auto generated by TMD-Music.com on: $today \n
    Name: $name \n
    Date Of Event: $date / $month / $year" \n
    Type Of Event: $type \n
    Phone Number: $phone \n
    E-Mail: $email \n
    Message: $text ";
    
    mail("natekrygier@gmail.com","TMD Music Inquiry",$body,$sender);
    
    
    ?>
    
    
    Your request has been sent. 
    <br /> <br />
    <a href="http://www.tmd-music.com"> Click here to return to TMD-Music.com </a>
    <br /> <br />
    
    ------------------------------------------------------
    
    <php echo $name ; ?>

  7. Now nothing sends. I guess for some reason the data isnt being passed from page to page. the forms action is to the page with this script, and the method is post.

     

    Here is the updated code.

    No mail is sent and nothing is written where echo is either.

    The page loads up fine though.

     

    <?php
    
    if(isset($_POST['submit']))
    {
    $sender = "TMD-Music.com";
    
    $name = $_POST['name'];
    $day = $_POST['dd'];
    $month = $_POST['mm'];
    $year = $_POST['yy'];
    
    $today = date("l, F j, Y, g:i a") ;
    
    $body ="This message was auto generated by TMD-Music.com on: $today \n
    Name: $name \n
    Date Of Event: $date / $month / $year";
    
    mail("natekrygier@gmail.com","TMD Music Inquiry",$body,$sender);
    }
    
    ?>
    
    
    Your request has been sent. 
    <br /> <br />
    <a href="http://www.tmd-music.com"> Click here to return to TMD-Music.com </a>
    <br /> <br />
    
    ------------------------------------------------------
    
    <php echo $name ; ?>

  8. Ive found some obvious errors, now I can send the mail, but the $_POST variables are not being sent, they are just blank.

     

    <?php
    
    $sender = $_POST["email"];
    
    $name = $_POST["name"];
    $day = $_POST["dd"];
    $month = $_POST["mm"];
    $year = $_POST["yy"];
    
    $today = date("l, F j, Y, g:i a") ;
    
    $body = "Date: $today \n
    Name: $name \n
    Date Of Event: $date / $month / $year";
    
    ?>
    
    Sending Request...
    
    <?php
    mail("natekrygier@gmail.com","TMD Music Inquiry",$body,$sender);
    ?>
    

  9. Ok am trying this code, but so far no login!

    [code]
    <?php

    $dbHost = "localhost";
    $dbUsername = "edited";
    $dbPassword = "edited";
    $dbName = "Xiemsoft_Site";
    #$username = $_POST['user'];
    #$password = $_POST['pass'];
    $username = "testname";
    $password = "testpass";
    $md5Password = MD5($password);

    $link = mysql_connect($dbHost,$dbUsername,$dbPassword);

    mysql_select_db($dbName,$link);

    $SQL = "SELECT username FROM webhosting WHERE username = \"$username\" AND password = \"$md5Password\"";

    $result = mysql_query($SQL,$link);

    if(mysql_num_rows($result) == 0)
    {
      $message = "Invalid Login.";
    }
    else
    {
      $message = "Logged In!";
    }

    ?>
    [/code]
  10. If I store the information using the MD5 function, how do I use php to convert it back to normal when I want to check a login? I used myphpadmin to convert it to MD5.

    Also, what would I put for local host, my domain name?
  11. here is a chunk of a style sheet i use for one of my sites.

     

    :link {color:red; font-family:calligrapher, comic sans ms, comic sans; font-size:14pt;}
    :visited {color:red; font-family:calligrapher, comic sans ms, comic sans; font-size:14pt;}
    :hover {color:silver; font-family:calligrapher, comic sans ms, comic sans; font-size:14pt; text-decoration:none;}
    :active {color:red; font-family:calligrapher, comic sans ms, comic sans; font-size:14pt;}
    

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