Jump to content

drcdeath

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

drcdeath's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I want to do a page where users can log in using MySQL + PHP and then it takes their username to their specific page. So if username was 'drcdeath' and password was 'pass' then it would take me to say drcdeath.php. If username was 'joebloggs' and pass was 'pass' then I would want it to go to joebloggs.php. You get the jist? Thanks, drcdeath.
  2. Wasn't quite solved :(. It keeps redirecting to 404.php if I have an error so if I type in www.example.com/asdmkoasndaojsdnasd.php the address bar will change to www.example.com/404.php and not stay as "asdmkoasndaojsdnasd.php" so it says: "The requested "404.php" was not found" Any clues? :(
  3. How would I get the information from the address bar after the slash using php? To be more specific I mean this: www.example.com/mypage.html Is there a way I can get the "mypage.html" using PHP. I want to create a page with a sentence like this: "The requested URL "mypage.html" could not be found" If you catch my drift. Any help would be greatly appreciated.
  4. <td background="imagename.ext" height="imageheight" width="imagewidth"><font color="yellow"><b>You're done!</b></font> Done.
  5. I did it, it sent the e-mail, but with no body. I entered a message in the box and nothing happened. It sent and nothing was in the e-mail.
  6. I edited the code to another smtp server, and it worked! But one thing, [code] <font color="white" size="6"><b><p align="center"> <?php $name = txtname.text; $email = 'ozzy.rose'; $message = txtmessage; $to = $email; $subject = "Contact Via J-Rose Computerisation Website"; $body = $message; ini_set("SMTP","smtp.virgin.net"); if (mail($email, $subject, $message)) {   echo("<p>Message successfully sent!</p>"); } else {   echo("<p>Message delivery failed...</p>"); } ?> </font></b></p> [/code] That's my code. I also have a text area which I want to be my message. At the moment when I send mail the message is: "txtmessage" - check the code. txtmessage is the name of the text area on my form. If you could modify the code so it worked, that would be great. Thanks.
  7. Hey, I'm a noob in PHP. I only started like a couple of months ago. I have done a file upload but that's it so far. Now I want to create a contact page using php for my website. I have build a form with all the necessary fields and the button and this is my code: [code] <font color="white"> <?php $name = 'txtname.text'; $email = 'txtemail.text'; $message = 'txtmessage.text'; $to = $email; $subject = "Contact Via J-Rose Computerisation Website"; $body = $message; ini_set("SMTP","smtp.googlemail.com"); if (mail($email, $subject, $message)) {   echo("<p>Message successfully sent!</p>"); } else {   echo("<p>Message delivery failed...</p>"); } ?> </font> [/code] The font tags are in there because my page colour is dark I need a light color for it to show correctly. Now that, doesn't work. I have an account on somebody's else's server because my own webspace doesn't support php. There is no php.ini file so I tried creating one, that didn't work. This is the error message I got: [quote="Error Message]Warning: mail() [function.mail]: SMTP server response: 530 5.7.0 Must issue a STARTTLS command first m1sm502887ugc in E:\webspace\standard\death_v8\send_mail.php on line 10 Message delivery failed...[/quote] Hopefully you php-literate people can tell me what's wrong. Thanks.
×
×
  • 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.