# Catch last variable?

**URL:** https://forum.kirupa.com/t/catch-last-variable/167451
**Category:** Uncategorized
**Created:** [October 28, 2005, 9:50am UTC](https://forum.kirupa.com/t/catch-last-variable/167451 "2005-10-28T09:50:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jerry](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jerry](https://forum.kirupa.com/u/jerry)
#### Post date: [October 28, 2005, 9:50am UTC](https://forum.kirupa.com/t/catch-last-variable/167451/1 "2005-10-28T09:50:39Z")

</div>

Hey there! :be:

I’m sending a variable to a PHP file like this:

```auto
myVars = new LoadVars();
  myVars.nLetter = _root.poster;
  myVars.sendAndLoad("postIt.php",myVars, "POST"); 

```

And I was wondering if it’s possible to make a function witch checks if  
\_root.poster is equal to the last variable sent, if so, don’t send, else send the new variable…

How can this be done? Any help would be nice 🙂
