Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Apr 2004
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Dreamweaver MX and PHP mail?

    Hello once again everyone,

    Geez... I could be kicking myself in the butt right now.

    I do somewhat apologize for any seemingly & completely ignorant posts in the past. LMAO...

    All this time, I have been all concerned & busting my rear to learn php & some java & some Perl simply to get some forms running (which is not at all bad, of course, & I'm glad I know what little bit that I do) when just about everything I've wanted to do has basically been right at my fingertips in Dreamweaver MX through server behaviors & data bindings, etc. Duhhh...geezus! Took me a little while to figure that out!! (Great book: SAMS *Teach Yourself Dreamweaver MX Application Development in 21 Days*)

    I am a bit confused at this point though.

    I have a nice form working in TFMail...I finally got that working & everything looks pretty good - but it doesn't insert anything into mySQL.

    I have a nice form that is created dynamically in Dreamweaver...basically the same form as the TF form. It looks good & works great as well - but it doesn't email me a copy of the submitted data from the form.

    Is it easier to create a php script to e-mail me the dynamically created DW form??

    Or is it easier to create a mySQL string that inserts the data from the TFMail form into my database table?

    Or...am I talking about a 6 of one & half-dozen of the other?

    Also, is there any easy way to do this??

    Thanks much for any suggestions or help,

    Humble Dude

  • #2
    Regular Coder
    Join Date
    Mar 2004
    Posts
    115
    Thanks
    0
    Thanked 0 Times in 0 Posts
    should be easy to do both insert and send you an email

    if(isset($_POST['submit']))
    {
    //validate data
    //if data ok input data to database
    //if data saved send mail
    //else show errors
    }
    else
    {
    //show form
    }


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •