Re: Help With POST And GET Method
let me try again
Code in tpl --
<form action="upload2.php" onsubmit="window.open('about:blank', 'formpopup', 'width=320,height=240,resizeable=no');" method="post" enctype="multipart/form-data" target="formpopup">
<p><input align="middle" type="image" name="imageField" id="imageField" src="{life.LIFE_PICTPATH}" alt="Add an Image"></p>
<input type="hidden" name="RECID" value="{life.UPDATE_TICKED}" />
</form>
The upload2.php does open a tpl file in a popup window just the same as it does in ICY itself when you add an image to gallery
Which should put the value contained in life.UPDATE_TICKED as the post variable of RECID correct ?
I know that life.UPDATE_TICKED, does produce a value as i have checked with an echo statement.
Code in upload2.php to retrieve this value is
$recordID = $_REQUEST['RECID']; //ID of specie being uploaded
I bit of insight --
I have a database that contains a list of birds all have a unique record number and is passed into the TPL under the variable life.UPDATE_TICKED, and it definately does transfer the correct value. I want to get this value into upload2.php so that when the user selects an image to upload i can assosciate it to this species unique to the user for retrieval in another page.
I dont normally have issues with post, get or request but i am severely going nutz with this is there something in icy 1.53 that stops you from posting ?