Jump to content

Archived

This topic is now archived and is closed to further replies.

gavn8r

Capture Form Field Names

Recommended Posts

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.form
For each Field in FormFields
response.write Field & " = " & Request.Form(Field) & "<br>"
Next
%>

Share this post


Link to post
Share on other sites
[code]<?php
foreach ($_POST as $fld => $val) echo "$fld  = $val<br />";
?>[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.