Array Question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gotornot
Forum Commoner
Posts: 54
Joined: Fri Jul 31, 2009 2:30 am

Array Question

Post by gotornot »

I am creating a form that generates fields dynamically on the fly as per database requirements.
When i submit the form the field names are generated by the database name for the option they are.

How do i collect them the other end and insert them into a db?

I can add a $vale = $_REQUEST[''];for each one as there will be lots of combinations

Is there any quick way of grabbing passed over data and spliting it up?
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: Array Question

Post by papa »

Usings forms you have global vars called:

$_GET and $_POST

Try for example: print_r($_POST) or get depending on what you use on the page your form submits to.
Post Reply