README.md

December 5, 2022 ยท View on GitHub

Field Grabber

Description

Have you ever gotten fat-fingered when trying to get the fields from a "Post" action and scrathed your head trying to figure out where the mistake is? Or pondered over a field input page, trying to figure out all the fields you have so you can add those fields to your request.form statements?

This code eliminates these problems. It grabs the field names and the formats the output in a copy-and-pasteable format so you can spend more time creating and less time trouble-shooting.

More Info

Fieldgrabber.asp - a simple, time saving utility.

Create a file named fieldgrabber.asp and paste in this code.

On a form page where you are submitting, make the action

fieldgrabber.asp and the method post. All the field field names

will print out in a copy-and-paste ready format.

Paste the results into the actual page you want to gather

your form info, change the action back to the actual page,

and you're ready.

All the field names from an input page.

Submitted On
ByBrian S. Vinson
LevelBeginner
User Rating4.8 (29 globes from 6 users)
CompatibilityASP (Active Server Pages)
CategoryValidation/ Processing
WorldASP / VbScript
Archive File

Source Code

<%
 For Each Item in Request.Form
  For iCount = 1 to Request.Form(Item).Count
 if Request.Form(Item)(iCount) <> "" then
  response.write Item & "=request.form(&quot;" & Item & "&quot;)<br>"
 End if
  Next
 Next
%>