RSS Forums RSS
Please support our ASP advertiser: Lunarpages ASP Web Hosting

parameter passing thru on click for different buttons

Join Date: Aug 2007
Posts: 76
Reputation: anto_nee is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 4
anto_nee anto_nee is offline Offline
Junior Poster in Training

Re: parameter passing thru on click for different buttons

  #9  
Nov 8th, 2007
hei this is some good logic but not working..
here my hidden field doesnot accept the value i think..
i forgot to say another thing .. my form tag is..
<form enctype="multipart/form-data" action="admin_iupl.asp" method="post" name="iprev">
i will give u the complete form and the next page requirements also..

<form enctype="multipart/form-data" action="admin_iupl.asp" method="post" name="iprev">

<table>
<div>

<th align="Right" width="20%" valign="top">

Caption Image<br>

<%If uploadpic then
If Not uPA(0) = Empty then%>
<img id="img1" height="100" width="100" src=<%=upload & uPA(0)%>><br><br>
<%else%>
<img id="img1" height="100" width="100" src="img/nopic.gif"><br><br>
<%end if
else%>
<img id="img1" height="100" width="100" src="img/nopic.gif"><br><br>
<%end if%>

<%If uploadpic then
If Not uPA(1) = Empty Then%>
<img id="img2" height="100" width="100" src=<%=upload & uPA(1)%>><br><br>
<%Else%>
<img id="img2" height="100" width="100" src="img/nopic.gif"><br><br>
<%end if
else%>
<img id="img2" height="100" width="100" src="img/nopic.gif"><br><br>
<%end if%>

<%If uploadpic then
If Not uPA(2) = Empty Then%>
<img id="img3" height="100" width="100" src=<%=upload & uPA(2)%>><br><br>
<%else%>
<img id="img3" height="100" width="100" src="img/nopic.gif"><br><br>
<%end if
else%>
<img id="img3" height="100" width="100" src="img/nopic.gif"><br><br>
<%end if%>

<%If uploadpic Then
If Not uPA(3) = Empty Then%>
<img id="img4" height="100" width="100" src=<%=upload & uPA(3)%>><br><br>
<%else%>
<img id="img4" height="100" width="100" src="img/nopic.gif"><br><br>
<%end if
else%>
<img id="img4" height="100" width="100" src="img/nopic.gif"><br><br>
<%end if%>

<%If uploadpic then
If Not uPA(4) = Empty Then%>
<img id="img5" height="100" width="100" src=<%=upload & uPA(4)%>>
<%else%>
<img id="img5" height="100" width="100" src="img/nopic.gif"><br><br>
<%end if
else%>
<img id="img5" height="100" width="100" src="img/nopic.gif"><br><br>
<%end if%>

</th>
<th align="Left" width="80%" valign="top">

<br>

<textarea rows="4" cols="35" name="img1caption">Ad Description</textarea><br>
<input name="selpic" type="file" id="imgbrowse1">
<input type="button" value="Upload" name="B1" id="B1" onclick="this.form.sessionvalue.value='0';submit()"><br><br><br>

<textarea rows="4" cols="35" name="img2caption">Ad Or Image Description</textarea><br>
<input name="selpic" type="file">
<input type="button" value="Upload" name="B2" id="B2" onclick="this.form.sessionvalue.value='1';submit()"><br><br>

<textarea rows="4" cols="35" name="img3caption">Image Description</textarea><br>
<input name="selpic" type="file">
<input type="button" value="Upload" name="B3" id="B3" onclick="this.form.sessionvalue.value='2';submit()"><br><br>


<textarea rows="4" cols="35" name="img4caption">Image Description</textarea><br>
<input name="selpic" type="file">
<input type="button" value="Upload" name="B4" id="B4" onclick="this.form.sessionvalue.value='3';submit()"><br><br><br>


<textarea rows="4" cols="35" name="img5caption">Image Description</textarea><br>
<input name="selpic" type="file">
<input type="button" value="Upload" name="B5" id="B5" onclick="this.form.sessionvalue.value='4';submit()"><br><br>

<input type="hidden" id="sessionvalue" name="sessionvalue" value="">
</th>
</table>
</form>

this is my form in one page and the continuing is next page..
Session("imgcap" & strSUnique) = request.form("sessionvalue")

i think my hidden field not taking the value............
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:58 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC