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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -