Jump to content

dunkleybrown

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

dunkleybrown's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. The following code works for me (everything between dotted lines). The basic function is the mail function, and i have 4 variables that it takes, the $toaddress gets assigned your email address. $subject is what the subject header will be. $mailcontent is what will be in the body (the trickiest part) and $fromaddress is what will appear as the sender (you can leave this out if you want). ------------------------------------------------------------------------ // create variables from form $firstname = $_POST[Firstname]; $lastname = $_POST[Lastname]; $date = $_POST[Date]; $request = $_POST[Request]; $email = $_POST; // send email $toaddress = 'you@yourdomain.com'; $subject = 'Email Subject Line Here'; $mailcontent = $firstname.' '.$lastname"\n"$date"\n"$request; $fromaddress = 'From: '.$email; mail($toaddress, $subject, $mailcontent, $fromaddress); ------------------------------------------------------------------------- This might look complicated, email me if it's unclear: dunkley@dunkleybrown.com
  2. ok, so i created a mySQL connection, saw the tables, created a recordset yadda yadda. however, DWMX2004 made the code look so bulky, i took out a few extra snippets, anyway, the php file works fine, however dreamweaver no longer "sees" the connection. It does not show up in the Databases panel anymore. So I decided to click the plus sign to create it again. when i tried to recreate it, it gives me the error message: "Cannot create new Connection because the file already exists. Please rename either the connection or the file." -- If it knows the file exists, why doesn't it show up?? The problem with this is---I don't want to create a new connection, i don't want to rename any files. The original connection file still exists and works fine, but because it doesn't appear in the panel, I can't create any new recordsets using it.... HELP!! Anyone encounter such a problem?
×
×
  • 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.