jQuery Mobile post to a html/php page from a data-rel='dialog' link

jQuery Mobile post to a html/php page from a data-rel='dialog' link

Hi,
 
The title says it all really. Anyone explain to me how you can pass variables to a page thats being displayed in a dialog?
 
I'm basically trying to display an elarged image when someone clicks on a dialog link. Instead of making multiple pages with 99% markup the same, I jkust want to pass the image name and change the src of the img tag.
 
Basic stuff but this has stumped me with jquery mobile.
 
Cheers for your anticipated help
 
Update: So many people views, yet no one replied :( . Looking around this forum is looking like a one way trade. Shame.
 
I overcame this. Not by post or get but by using localStorage. This was due to time constraints. When I work out how to properly do it I will post back, and pass it on.
 
Shame the documentation is lacking in jqm, but I guess that only expected when its so young.