Jump to content

GoinNuts

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

About GoinNuts

  • Birthday 07/30/1961

Profile Information

  • Gender
    Male
  • Location
    Liberty, MO, USA

GoinNuts's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. GoinNuts

    Help!!

    $_GET is used when what you are looking for is in the querystring. $_POST is used when what you are looking for is passed using the POST method of the form the data was sent from. $_REQUEST wraps both $_GET and $_POST, and some other things too. Now, for a bit of an explanation: When you use the POST method in your form, like this: [code]<form name="myForm" action="handleMyForm.php method=[color=red]"POST"[/color] <input type="text" name="myInput"> <input type="submit" name="submit" value="Submit"> </form>[/code] you should use the $_POST syntax in the script handling the form: [code]... $myInput = $_POST['myInput']; ...[/code] Likewise, if you use the GET method in the form, you should use the $_GET syntax in the form handling script. $_REQUEST will find both GETs and POSTs, but you should really stick with $_GET or $_POST. If you must use $_REQUEST, and if a GET value and a POST value both have the same name attribute on the form, the variable will be overwritten. The order of precedence is specified in php.ini. I'll leave it as an excercise to you to find the line in the ini file, and learn what the default order of precedence is. Hope this helps...
  2. My suggestion would be to keep the fields in the SQL table as distinct values (as opposed to parsing them into a delimited string). If you need to work with the values in an array within your php code, populate the array from the result of the query on the fly.
  3. I like it, if for no other reason than it's a good effort at text processing. After all, string manipulation is a big part of what we're all doing... 8)
  4. I use Zend Studio Standard at home and Homesite at work. I used to use Macromedia Studio, but it has far to many bells and whistles for my taste. I prefer coding in a clean, non/wysiwyg environment, but there is a lot to be said for syntax highlighting, IMHO. :)
×
×
  • 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.