Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 200003

[PHP3] ASP to PHP checked boxes problem From: Bradley Kieser (brad <email protected>)
Date: 03/26/00

Can anyone suggest a translation of the following ASP code to PHP?

===== CODE STARTS ======

SUB HiddenFields
 For each member in Request.Form
    if Request.Form(member) = "check" Then
%>
 <INPUT NAME="<%=member%>" TYPE ="HIDDEN" VALUE="<%=Server.HTMLEncode(Request.Form(member))%>">
<%
 end If
 NEXT
 END SUB
%>

==== CODE ENDS =========

I am not an ASP fundi, but it looks to me as though they are simply looping through
checkboxes on a form. Is this correct?

Thanks!

Brad

-- 
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin <email protected>