_GET_VARS[]

  • dEfEndEr
  • Newbie
  • Newbie
  • dEfEndEr
  • Posts: 14

Post 3+ Months Ago

OK,

As i'm an old C programmer, I want to do this

Find out the total number of vars passed to the php script, and what the names are ?

so that I can use the $_HTTP_POST_VARS[] command to process all the records posted to a page at once, and deal with each if it finds it, and log those received that I can't process ?


Any ideas.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • RichB
  • Guru
  • Guru
  • User avatar
  • Posts: 1121
  • Loc: Boston

Post 3+ Months Ago

You can use the count() function to get the number of elements and array_keys() to get an array holding the names.
  • dEfEndEr
  • Newbie
  • Newbie
  • dEfEndEr
  • Posts: 14

Post 3+ Months Ago

Thanks,

But I've never played with Arrays before, and using the array_keys all I seem to get back is 'Array' which is where I've been before :(

It's breaking it all down in to the elements that I'm stuck with.


But i've done it now :)

I've never array walked before :)

WOW, thanks :)

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 110 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.