Jump to content

pitn

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

pitn's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. mgallforever and alpine, it worked !! perfect !! Thank you both !
  2. Hello, Can someone help me? The input (webform) is a date like the following example (dd-mm-yyyy): $date = $_POST['date'];        // for example $date contains 08-12-2006 How can I extract the day, month ans year seperately? $day = ???            // what is the code to get the day (08) in the variable $day? $month = ???        // what is the code to get the month (12) in the variable $month? $year = ???          // what is the code to get the year (2006) in the variable $year? Many Tx!
  3. pitn

    header()

    (how) can i send a variable (ex: $Date) using header()? header ('Location: [a href=\"http://xxx');\" target=\"_blank\"]http://xxx');[/a] /* can $Date be send using header?1 Tx all for a reply
  4. I put in error_reporting(E_ALL); and get the following errors: Notice: Undefined index: naam in /customers/xxxxxx.eu/xxxxxx.eu/httpd.www/sendmail.php on line 3 .... (for every variable, so line 3 up to line9)
  5. Orio & Ken, Tx for helping me out + taking the time to explain, but I'm "close, but no doughnut": after pressing 'send' on the form, it returns to the original html page (which is fine); I receive the mail, with the mailsubject, BUT the mail contents are blank (?). So no $message. <?php $naam = $_POST['naam']; $telefoon = $_POST['telefoon']; $vliegtuig = $_POST['vliegtuig']; $datum = $_POST['datum']; $van = $_POST['van']; $tot = $_POST['tot']; $vraag = $_POST['vraag']; $message = $naam; $message .= $telefoon; $message .= $liegtuig; $message .= $datum; $message .= $van; $message .= $tot; $message .= $vraag; mail('mymail@hotmail.com', 'request', $message) or die("Failure!"); header ("location: Contact.htm"); ?> Any ideas?
  6. hello, can anyone tell me what I'm doing wrong? <?php $to = "mymail@hotmail.com"; $subject = "Request"; $naam = $_POST['naam']; $telefoon = $_POST['telefoon']; $vliegtuig = $_POST['vliegtuig']; $datum = $_POST['datum']; $van = $_POST['van']; $tot = $_POST['tot']; $vraag = $_POST['vraag'] $message = "$naam + $telefoon + $vliegtuig + $datum + $van + $tot + $vraag"; mail($to,$subject,$message); ?> Q1: what is correct: $_POST['naam'] or ["naam"] (' or ") Q2: $message = "$naam + $telefoon + $vliegtuig + $datum + $van + $tot + $vraag"; is + correct, or do I need to use . instead? - how can I phrase the $message better? Tx all Total PHP newbie
×
×
  • 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.