I have the following HTML...
<img id="image1" src="URL" alt="image1" name="image1" width="137" height="119" border="0" style="position: relative; left: -355px; top: 62px;" >
How would I go about storing the following information into a variable..from the style attribute.
$variable1 = -355;
$variable2 = 62;
Thank you in advance!
UPDATE:
Apologies for not explaining clearly and thank you for your help.
The goal right now, after submitting a form on the page, to find all the img tags and store each attribute within the img tag into a PHP variables.
I will then want to store those values into a MySQL database and retrieve them on a different page.
I hope that clears things up.