php-form-processing

How to access the form's 'name' variable from PHP

Hi, I'm trying to create a BMI calculator. This should allow people to use either metric or imperial measurements. I realise that I could use hidden tags to solve my problem, but this has bugged me before so I thought I'd ask: I can use $_POST['variableName'] to find the submitted variableName field-value; but...I don't know, or see, h...

Using PHP script to fill in XML

Hi - we are all familiar with "embedding" PHP scripts in HTML pages to do tasks like displaying form results, but how can that be done in a way that displays XML? For example, if I wrote: <?xml version='1.0' ?> <Response> <?php $body = $_GET['Body']; $fromPh = $_GET['From']; echo "<Msg>Your number is: $fromPh,...

looping through variable post vars and adding them to the database

I have been given the task of devising a custom forms manager that has a mysql backend. The problem I have now encountered after setting up all the front end, is how to process a form that is dynamic. For E.G Form one could contain 6 fields all with different name attributes in the input tag. Form two could contain 20 fields all with ...