sending html form data to php -
i using drupal site.here code have written in client side
<form method="get"> email :<input type ="text" name ="email" size ="20"><br /> <button style="width:65;height:25" onclick='email_direction_data()'><b>send</b></button> </form>
when click button page refresh.text field used enter email address.i have written below code inside drupal module file in function send email.
drupal_mail('direction', 'invitation', $_get['email'] , language_default(), $params);
but text field content not going array when click button.what reason that?is there wrong in code?
you need have html <input type="submit" />
button, not <button>
tag.
Comments
Post a Comment