Link to home
Start Free TrialLog in
Avatar of FairyBusiness
FairyBusinessFlag for United States of America

asked on

How to create an array of form input posts in C#?

Hi, I would like to create an array that holds all of the form field's input in C#.  In php I would do something like this:

$required_fields = array();
			foreach($_POST as $key => $value){
			$required_fields[] = $key;
		}

Open in new window


I can't figure out what to do in C# though.  Anyone know how to go about this?
ASKER CERTIFIED SOLUTION
Avatar of Craig Wagner
Craig Wagner
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of FairyBusiness

ASKER

if my form as an id of id="signup" how would I call the form by name in your code?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks!