Jump to content

Fixxer

Members
  • Posts

    25
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Fixxer's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Fixxer

    backup

    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. IDK i use w/e my web host (yahoo) uses.
  4. hmm i must not have php5 then, the page doesnt even work then.
  5. as long as the server has the php framework, yes.
  6. How can I make this display eastern time zone? $today = date("l, F j, Y, g:i a");
  7. 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 ; ?>
  8. 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: ""
  9. 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}
  10. it says errors occured when i fill out the form and click submit.
  11. 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 ; ?>
  12. 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 ; ?>
  13. 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); ?>
  14. This is not working, how can I send form data using PHP? <?php mail("natekrygier@gmail.com","TMD Music Inquiry",$_POST["name"],"nkrygier@gmail.com"); ?>
×
×
  • 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.