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

  • SEARCH
  • Home
  • 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 8415471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:27:24+00:00 2026-06-10T01:27:24+00:00

ı need to send data one is array another is single data. var img=$(‘#image’).val();

  • 0

ı need to send data one is array another is single data.

var img=$('#image').val(); // image name

var formdatas=($(this).serialize()); // data from form, including to many data

data:formdatas, //legal
data:{f:formdatas,r:img}, //legal but formdatas is an array ı cant send it like this

but ı need something like this.

data:{formdatas,r:img}, // this is not working

and this is my complete code, ı just need to send 2 different data.

$('#lastikekle').submit(function() {

    var resim=$('#resim').val();

    var formverileri=($(this).serialize());

    $.ajax({
              type:"POST",          
              url: "lastikekle.php",
              data:{formverileri,r:resim}, ????
              success: function(result){

                $( "#dialog" ).dialog();
                $("#dialog").html(result);
                                        }   
        });


    });
  • 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-10T01:27:26+00:00Added an answer on June 10, 2026 at 1:27 am

    Try: (.serialize returns a string)

    data: formdatas+'&r='+encodeURIComponent(img)
    

    Edit:
    or you could use serializeArray

    $('#lastikekle').submit(function () {
        var resim = $('#resim').val();
        var formverileri = $(this).serializeArray();
        formverileri.r = resim;
        $.ajax({
            type: "POST",
            url: "lastikekle.php",
            data: formverileri,
            success : function (result) {
                $("#dialog").dialog();
                $("#dialog").html(result);
            }
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi every one I need to send an array as the data of a
I need to send data to a hardware device over serial port. I'm using
I need to send some data with radio button. This buttons are <td> <span
I need to send XML data to a URL. The XML data is contained
In a project for school I need to send xml data to the client
I have an html form. I need to send its data to flash on
i need to send and receive data to/from a microcontroller using java using usb
Ok i need to use json on my iOS application to send/receive data to/from
I am calculating 16 bit checksum on my data which i need to send
I need send certain attributes(say, human readable user name) from server to client after

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.