Jump to content

Fixxer

Members
  • Posts

    25
  • Joined

  • Last visited

    Never

Everything posted by Fixxer

  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"); ?>
  15. Can someone fix my syntax? I sed this a while ago before I stopped doing web design. I know it looked exactly like this... in theory, the syntax is wrong. <?php if(!defined)$id then include(home.php); else include($id.php); ?>
  16. It is, i created it using phpmyadmin.
  17. Does anyone know what that means?
  18. Ahh thanks, it appears that I cannot connect :x Couldn't connect to the database Can't connect to local MySQL server through socket '/tmp/mysql.sock' (46)
  19. 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]
  20. 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?
  21. When ever I install PHP Nuke, and try to create the super user, I create it and it bring me to a login page, but then I cannot log in.
  22. 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.