gavn8r Posted September 6, 2006 Share Posted September 6, 2006 I want to do this ASP code in PHP. Can anybody help? It captures all data from the form that passes to it and writes out the field names.<%Set FormFields = request.formFor each Field in FormFieldsresponse.write Field & " = " & Request.Form(Field) & "<br>"Next%> Link to comment https://forums.phpfreaks.com/topic/19950-capture-form-field-names/ Share on other sites More sharing options...
Barand Posted September 6, 2006 Share Posted September 6, 2006 [code]<?phpforeach ($_POST as $fld => $val) echo "$fld = $val<br />";?>[/code] Link to comment https://forums.phpfreaks.com/topic/19950-capture-form-field-names/#findComment-87466 Share on other sites More sharing options...
gavn8r Posted September 6, 2006 Author Share Posted September 6, 2006 Thank you so much... it worked perfectly! Link to comment https://forums.phpfreaks.com/topic/19950-capture-form-field-names/#findComment-87468 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.