\n"; $msg .= "\n"; $msg .= "\n"; $msg .= "%s\n"; $msg .= "\n"; $msg .= "\n"; $msg .= "\n"; $msg .= "-------------------------------------------------------------------------------\n"; $msg .= "\n"; $msg .= "EVUK, campaign for REAL, long-range electric vehicles - and so much more!\n"; $msg .= "\n"; $msg .= "http://www.evuk.co.uk/\n"; $msg .= "\n"; // class ThisPage extends Page class ThisPage { var $form; var $message; function set_form_data ($form) { $this->form = $form; } function main () { // $this->init (); if ($this->form[action] == "tellafriend") { $message = ""; if (!trim ($this->form[from_name]) ) $message .= "
  • You haven't filled in your name.
  • \n"; if (!trim ($this->form[from_email]) ) $message .= "
  • You haven't filled in your email address.
  • \n"; if (!trim ($this->form[to_name]) ) $message .= "
  • You haven't filled in your friend's name.
  • \n"; if (!trim ($this->form[to_email]) ) $message .= "
  • You haven't filled in your friend's email address.
  • \n"; if (!trim ($this->form[body]) ) $message .= "
  • You haven't filled in a message.
  • \n"; if (!$message) { $body = sprintf ($GLOBALS[msg], $this->form[body]); $to_header = sprintf ("%s <%s>", $this->form[to_name], $this->form[to_email]); $from_header = sprintf ("From: %s <%s>", $this->form[from_name], $this->form[from_email]); if (!mail ($to_header, "EVUK - Electric Vehicles UK", $body, $from_header) ) exception ("mail", "unable to send message!"); unset ($GLOBALS[form][to_email]); unset ($GLOBALS[form][to_name]); $this->message = "A mail has been sent. Tell another friend."; } else $this->message = $message; } } } $p = new ThisPage(); if (is_array ($form) ) $p->set_form_data ($form); $p->main (); ?> Electric Vehicles UK


    message): ?>

      message;?>

    Pop your friend's e-mail address here along with a message and then click submit to send your message.

    Your name:

    Your e-mail:

     

    Friend's name:

    Friend's e-mail:

    Message:

     
        contact us