Question: I'm sending data via Jquery Ajax post, I want to send the text box from my form, but also a variable called username.
For example...

```
$.ajax({type:'POST', url: 'submit.php', data:$('#myform').serialize(), username});

```

How can I do this?

Answer: 
Just add the extra parameter to the serialized string

```
$.ajax({
    type:'POST', 
    url: 'submit.php', 
    data:$('#myform').serialize()+'&username='+encodeURIComponent(username)
});

```
You can pass it your other variable via get like this.

`$.ajax({type:'POST', url: 'submit.php?myvar='+encodeURIComponent(myvar), data:$('#myform').serialize(), username});`

You could also add the value to a hidden field in your form.