I'm quite a php novice so I hope someone here can help me out!
I have a php form that posts info to an aspx page, which returns info to my php form.
For example, one of the return fields reports errors in how the form was filled out - by typing this:
<?php if ($errors) print_r('<div class=cont_err>OOPS - it looks like there were errors in your contribution submission:'); echo $_POST['errors']; print_r ('</div>') ?>
into my form I got this returned:
OOPS - it looks like there were errors in your contribution submission:30/31/32/33/35/36/37/40/41/42/50/52
Now, each of those error numbers coresponds to a particular error which I'd like to print on the screen underneath the simple message that results when there are errors.
How can I seperate the list of errors and display an error message (such as 'you forgot to input your name') for each number displayed?