Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6164751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:02:49+00:00 2026-05-23T22:02:49+00:00

I am using a drupal site.here is the code I have written in client

  • 0

I am using a drupal site.here is the code I 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 I click the button page will refresh.text field is used for enter the email address.I have written below code inside a drupal module file in a function to send an email.

  drupal_mail('direction', 'invitation', $_GET['email'] , language_default(), $params);

but the text field content is not going to GET array when I click the button.what is the reason for that?is there any wrong in my code?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T22:02:49+00:00Added an answer on May 23, 2026 at 10:02 pm

    You need to have an html <input type="submit" /> button, not a <button> tag.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When submitting a message in my site-wide contact form in Drupal 6.x I get
On my Drupal site, I have made a Users page using the Views module,
I have a web site. This is a drupal site using PostgreSQL database.In this
So I have a site with a dozen pages on it using Drupal as
Im using the jQuery noConflict method here: http://drupal.org/node/1058168 Now, both of the following work:
Just today I've started using Drupal for a site I'm designing/developing. For my own
My drupal site (internal) will not display the TinyMCE editor when using Google Chrome
I'm using JCarousellite to create simple carousels on a Drupal site. In my template
We are tying to perf tune our drupal site. We are using Siege to
I'm working on a Drupal 5.x book-selling site and using the Views Fast Search

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.