Hi, i'm migrating a site to drupal... I have a complicated form in the old site, with values calculated trought javascript, etc... so I think best solution is not use webform for now, otherwise create a page with full html and copy the content of the form... . The problem is now, i need this form will be submitted to email. Is possible this?
Thanks.
Javi.

Well, i solved this.
I installed php filter module.
I selected php as input type for the page.
I created the form in page, with action to $_SERVER['PHP_SELF'], and at begin of page... something as ..

<?php
if isset($_POST['name']) {
    $body = $_POST['name'].",".$_POST['surname'];
    mail ("alguien@dominio.com", "testing send form to email", $body);
}
?>

more info about php mail function here .

Comments

jarizaro’s picture

solved