php - Update image src with input field.? -
three url input fields.
<input type="url" name="image1"/> <input type="url" name="image2"/> <input type="url" name="image3"/>
and 3 images tag.
<img src="image link first input"/> <img src="image link second input"/> <img src="image link third input"/>
can php.?and use condition example if want change 1 image src other src code not change mean update 1 image.
the simple way:
<img src="image link first input"/>
becomes
<img src="<php echo $_get['image1']]?>"/>
assumes form uses get
Comments
Post a Comment