How do I create if statements in php to perform a specific action depending on what form has string in it

Posted by user1637284 on Stack Overflow See other posts from Stack Overflow or by user1637284
Published on 2012-08-31T09:25:44Z Indexed on 2012/08/31 9:38 UTC
Read the original article Hit count: 107

Filed under:
|
|

Im trying to create a grid on my page in each cell there will be a simple one line form. If a person enters data into lets say FieldA I would like the php to perform actionA but if the data was entered in FieldF I would like actionF performed. Is this possible without having to create a php for each cell and upload all those php files?

Or is there a way to perform the GET method in each form to append the data to the end of the action url without the field name showing (ie sample.com/somestuff/fieldA instead of sample.com/somestuff/fieldname=fieldA) thus not needing php at all?

© Stack Overflow or respective owner

Related posts about php

Related posts about forms