darn it! it's at the end of my tongue!

Are you using LiveCode to create server scripts or CGIs?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
shadowslash
Posts: 344
Joined: Tue Feb 24, 2009 6:14 pm
Location: Philippines
Contact:

darn it! it's at the end of my tongue!

Post by shadowslash » Sun Jan 17, 2010 5:15 am

What command is it used to easily divide $QUERY_STRING from

formitem=value&formitem1=value1&formitem2=value2

to

formitem=value
formitem1=value1
formitem2=value2


It's already at the end of my tongue and I know i've read it somewhere I just couldn't get it out! Anybody please help??? Thank you a lot!
Parañaque, Philippines
Image
Image

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: darn it! it's at the end of my tongue!

Post by sturgis » Sun Jan 17, 2010 5:39 am

Is it split you're looking for?

Code: Select all

   put $QUERY_STRING into tTmp
   split tTmp by "&" and "="

shadowslash
Posts: 344
Joined: Tue Feb 24, 2009 6:14 pm
Location: Philippines
Contact:

Re: darn it! it's at the end of my tongue!

Post by shadowslash » Sun Jan 17, 2010 5:40 am

THANK YOU dude! I was always looking up sort and filter I forgot about split! Thank you thank you thank you!!!
Parañaque, Philippines
Image
Image

Post Reply

Return to “CGIs and the Server”