/    Sign up×
Community /Pin to ProfileBookmark

image swap using img name attribute

Hi everyone, I am trying to make php swap a tumbnail image from a table.

so here is what I have:
<table>

<tr>
<td><img id=”img1 name=”img1″ src=”/img1.jpg” /></td>
</tr>
<tr>
<td><img id=”img2 name=”img2″ src=”img2.jpg” /></td>
</tr>
<tr>
<td><img id=”img3 name=”img3″ img3.jpg” /></td>
</tr>
</table>
so I need PHp to be able to use the name attribute to echo one of the images and swap the images on refresh. ( or how can i even just echo one of the images) the swapping image would be a tumbnail so the size need to be reduced as well. ( i can do that from the html.)

Thanks

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @andy106 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...