View Single Post
Join Date: Jun 2008
Posts: 850
Reputation: R0bb0b is on a distinguished road 
Solved Threads: 67
R0bb0b's Avatar
R0bb0b R0bb0b is offline Offline
Practically a Posting Shark

Re: whois script not working in IE

 
0
  #9
Jul 15th, 2008
You know that there are two parts to an array cell(or what ever you want to call it) right?
array[0] = "red";
echo array[0] and get "red";

0 is the key.
"red" is the value.

so, you can do a foreach loop with just he value like this
  1. foreach($array as $value)
  2. {
  3. $value = "red";
  4. }
or with key and value
  1. foreach($array as $key=>$value)
  2. {
  3. $key = 0;
  4. $value = "red";
  5. }
Maybe that will help, ya?
You can stick it at the very top of the script and it will replace all "_" with "." in the $_POST names.
Last edited by R0bb0b; Jul 15th, 2008 at 10:13 pm.
“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” - Dr. Seuss

-- The documentation is inevitable, you may get away with it for a little while but eventually you too will have to do the deed.
Reply With Quote