How to get rid of very long search strings
numero = 50[text]blah=[lookup etc...][/text][text]blahblah=[lookup etc...][/text][search db=some.db&[!] [/!]eqFIELDNAMEdatarq=[url][blah][/url]&[!] [/!]geFIELDNAME2datarq=[url][blahblah][/url]&[!] [/!]FIELDNAME2type=num&[!] [/!]asFIELDNAME2sort=1&[!] [/!]etc[!] [/!]] [founditems][fields_from_found_records] [/founditems][/search]Lookup your variables beforehand, then feed them into your search for cleaner, easier to read code. I also use the comment tags ([!] and [/!]) to hide linebreaks in order to make the search string easier to read.
[text]blah=[lookup etc...][/text]
[text]blahblah=[lookup etc...][/text]
[search db=some.db&[!]
[/!]eqFIELDNAMEdatarq=[url][blah][/url]&[!]
[/!]geFIELDNAME2datarq=[url][blahblah][/url]&[!]
[/!]FIELDNAME2type=num&[!]
[/!]asFIELDNAME2sort=1&[!]
[/!]etc[!]
[/!]]
[founditems]
[fields_from_found_records]
[/founditems]
[/search]
DOWNLOAD WEBDNA NOW!
Amazon Web Services (AWS) README for Machine Image ID...
WebDNA ModulesA list of the currently available modules...
F.A.QA compilation of some user's questions...
WebDNA reference...
Tips and TricksA list of user-submitted tips ...
Download WebDNA ApplicationsWebDNA applications...
This will show or hide stuff according to the IP...
How old am I?You want to express an age in years given the dob (mm/dd/yyyy) and today's date...
random password-generator codeGenerate a random alpha-numeric string...
Setting a 30-minute CookieConfiguring the expires time for a short-term cookie is tricky...
Removing whitespaceHow can I remove all whitespace entered by a user from an input box (ie card number)...
Using a simple Array of Variables with [interpret]The [interpret] context is very powerful command in the hands of a skilled WebDNA programmer...