Question:

Help with php's switch()?

by  |  earlier

0 LIKES UnLike

How do you use switch() to parse a varible sent by a form from the previous page?

 Tags:

   Report

2 ANSWERS


  1. switch($_POST['varname'])

    or

    switch($_GET['varname'])

    replace varname with the name on the field you wish to parse, and use either POST or GET depending on how the form is being sent.


  2. Hi,

    I want to expose something to you

    that you might not be aware of...

    http://getyourstuff.org/learnphp

    Nobody wants to tell you this stuff,

    because they know, if you knew, you

    would not join their websites...

    You would simply start your own

    Take a peek and see what I mean

    http://getyourstuff.org/learnphp

    You will not be dis-appointed!

    Jamie

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.