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 8133779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:44:29+00:00 2026-06-06T09:44:29+00:00

I have formatted my form using uniform jquery plugin. Also for submitting the form

  • 0

I have formatted my form using uniform jquery plugin. Also for submitting the form i am using a link as i have added some effect to it and if I use input type submit for this it will get formatted with uniform .

<form>
      <ul>
        <li><label>Your Name:</label><input type="text" name="name" size="40"/></li>
        <li><label>Your Email:</label><input type="email" name="email" size="40"/></li>
    <li>
          <label>Gender:</label>
          <select name="gender">
            <option>Male</option>
            <option>Female</option>
            </select>
        </li>
    <li><label>Subject:</label><input type="text" name="subject" size="40"/></li>

    <li><label>Write your letter here:</label><textarea name="message" cols="60" rows="15"></textarea></li>
        OR ELSE<br/><br/>
        <li>
          <label>Upload your letter:</label>
          <input type="file" />
        </li>
        <li>
            <a id="mylink" class="button" href="#">
    <img src="button.png" alt="" />Send</a>


        </li>

      </ul>
    </form>

Now i want to submit this form using the link and also want to email it to two email ids simultaneously. What javascript code can i use. I am using the following code to submit the form and then in send.php I am sending the mail.

a.onclick = function() {
    $(this).parents('form:first').submit();
    send.php;

    return false;
}​

Is it possible to call send.php like this?

  • 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-06-06T09:44:32+00:00Added an answer on June 6, 2026 at 9:44 am

    Do you mean:

    If you have action=”send.php” in your form, then

    $(document).ready(function() {
        $("#mylink").click(function(e) {
            e.preventDefault();
            $(this).closest('form').submit();
        });
    });
    

    Or, you can set action for the form and submit, like

    $(document).ready(function() {
            $("#mylink").click(function(e) {
                e.preventDefault();
                    var myFrm = $(this).closest('form');
                    myFrm.get(0).setAttribute('action', 'send.php');
                myFrm.submit();
            });
        });
    

    OR, using ajax

    $(document).ready(function() {
        $("#mylink").click(function(e) {
            e.preventDefault();
            $.ajax({
                type: "POST",
                url: "send.php",
                data: {your data to post here},
                succes: function(resp) {
                    //your response here
                }
            });
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a date field (i'm using the jquery ui datepicker) in a form
I need to add some formatted text to a PDF form field using iTextSharp
I have strings formatted using the code below String.Format({0,-10} {1,10}, Kills:, kills); String.Format({0,-10} {1,10},
I have date formatted in this way: 2010-02-04T00:00:00 I use this code to parse
I'm using ROXML to read and automatically build Ruby objects form properly formatted XML.
I have have a simple HTML form with say four input widgets (see below)...two
Im carrying out some form validation with codeigniter using a custom validation callback. $this->form_validation->set_rules('testPost',
I have some problems getting the custom formated JSON data into a dijit.form.FilteringSelect. It
Using C#: I have a class MsgBox, a special Message Box formatted to my
I have a form with a jwysiwyg editor. Looking at it, it can use

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.