Jump to content

designguru

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

designguru's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hey guys, 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: [code] <?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>') ?> [/code] into my form I got this returned: [code] OOPS - it looks like there were errors in your contribution submission:30/31/32/33/35/36/37/40/41/42/50/52 [/code] 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? Cheers, Qasim
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.