I have an image in the main.php
file :
<img src="..\images\image.gif" class="cur" onclick="imgWin();">
when I click on this image below function has called :
function imgWin()
{
imageWin=window.open("../pages/img.php","imageWin","toolbar=no,width=500,height=200,directories=no,menubar=no,SCROLLBARS=yes");
}
this function opens img.php in a new window
img.php file :
<HTML>
<HEAD>
<TITLE>upload image</TITLE>
</HEAD>
<BODY>
<FORM NAME="imgForm" method="get" action="#">
address :
<INPUT type="file" name="imgUrl" size="50">
description :
<INPUT type="text" name="description" size="50">
<input type="submit" value="sumbit">
</form>
</BODY>
</HTML>
I want to when I click on submit
button in above form , data from imgUrl
and description
textboxes send to main.php
file.
How to I can do it ?