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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.