Jump to content

POST Submit value


amwd07

Recommended Posts

Not sure if this is possble I need to post the value on the submit image

the idea is I want to use this as an image library so the image clicked submits to the db

 

it works the entry to the db but the image is not the one selected this is becuase the value is taken from the hidden field,

if the value can be taken from the the image submit this should be correct but I also need the name to be welcome_image1 or nothing will happen

 

it all sounds complecated, all I need to do is click on an image to change the db field welcome_image1

anyone have any idea's ?

 

echo "<form method='post' id='form1' ";
echo "<div class=library_files>";		       
echo "<input type='image' src='".$file."' width='100' border='0' hspace='6' vspace='6' alt='$fName' value='$fName' />";		
echo "<input type='hidden' name='welcome_image1' id='welcome_image1' value='$fName' />";   
echo "</div></form>";

Link to comment
https://forums.phpfreaks.com/topic/91436-post-submit-value/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.