dude123 Posted October 12, 2006 Share Posted October 12, 2006 I have an ASP page where I have the following. <% strvideos = Session("VideoList")SelList = split(strvideos,"###",-1)UppBound = UBound (SelList,1) for i=0 to UppBound-1%> and then , I put it in a form field like shown below.<input type="hidden" name="Video<%=i+1%>" value="<%=SelList(i)%>"> <%NEXT%>Now, I extract this form and send automatic e-mails using PHP. When I try to extract the content in the form element "Video", I get an error saying its undefined. The extraction code is like this,$strvideos = $_POST[ 'Video' ];and then I try to treat $strvideos as an array and display it. I guess my question is HOW TO EXTRACT THE CONTENT IN THE FORM ELEMENT "Video" . I may be stupid enough not to figure this out but I couldn't. Can any one help me on this.Babu. Link to comment Share on other sites More sharing options...
Little Goat Posted October 12, 2006 Share Posted October 12, 2006 in the ASP code, try using name="Video[<%=i+1%>]" so then the code printed will be name="Video[1]" if i is 0. then you can treat $_POST['Video'] like an array. Link to comment Share on other sites More sharing options...
jhecht Posted October 12, 2006 Share Posted October 12, 2006 If you are going to use PHP to submit the form, use PHP to do the sessions as well... there's no point using more than 1 server language. Link to comment Share on other sites More sharing options...
dude123 Posted October 12, 2006 Author Share Posted October 12, 2006 that worked..thank you very much!! in the ASP code, try using name="Video[<%=i+1%>]" so then the code printed will be name="Video[1]" if i is 0. then you can treat $_POST['Video'] like an array.I would like to do that..but I am not in a position to decide on that. Thanks anyway.If you are going to use PHP to submit the form, use PHP to do the sessions as well... there's no point using more than 1 server language. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now