Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Jul 2005
    Posts
    22
    Member #
    10511
    firsly are there any databases that PHP DOES NOT work with? if so which ones!!


    Secondly

    i can post to a database, exctract from a database, modify a database in PHP

    say i make a form askign for users details how would you get it to send a email to the user after they have finihsed the form either with or without the details they have sent me!!

    thanks
    hope that all makes sum sense

  2.  

  3. #2
    Senior Member raspberryh's Avatar
    Join Date
    Aug 2004
    Location
    Erie, PA
    Posts
    882
    Member #
    7208
    Liked
    1 times
    i'm not sure about your first question because i use the same kind every time (mysql). but i think you can use php with any type of database.

    as for the second question, there is a mail function in php that you can send it with, and yes you can include the stuff the user put in the form, just grab the variables using $_REQUEST, $_GET, or $_POST.

    on using mail function:
    http://us3.php.net/manual/en/ref.mail.php
    choosy developers choose gif!
    website | paintings | blog

  4. #3
    Junior Member
    Join Date
    Jul 2005
    Posts
    22
    Member #
    10511
    thanks fro reply

    sql is fine just using large databases i find to be a bit slow

    thanks for the link was very usfull just there seems to be a few probs with security wise (people can use the settings to send there own emails ect)

    thanks again :classic:

  5. #4
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    To go over the original poster's query about emailing, here is a quick example.

    PHP Code:
    <html>

    <head>

    <title>contact</title>

    <?php // begin php code block

    if(_POST['submit']=="Send") { // if user clicked send

    $full_name $_POST['full_name'];
    $subject "You have a new comment";
    $from $_POST['email'];
    $to "youraddress@domain.com";
    $comment $_POST['comment'];

    mail($to$subject$comment"From:$email");

    }
    ?>
    </head>

    <body>
    <form name="contact" action="<?php echo $PHP_SELF ?>" method="post">

    Name: <input type="text" size="30" name="full_name" />
    <br /><br />
    Your Email: <input type="text" size="40" name="email" />
    <br /><br />
    Comment: <br />
    <textarea name="comment" rows="5" cols="70"></textarea>
    <br /><br />
    <input type="submit" name="submit" value="Send" />

    </form>

    </body>

    </html>
    Untested, but it should be fine.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 05:43 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com