Re: [WebDNA] WebDNA vs. php war ;-)

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 104826
interpreted = N
texte = I don't want to be the PHP defender as I've said before I agree WebDNA = is much simpler but... On 19 Feb 2010, at 20:37, Matthew Bohne wrote: > Or, the one that irks me the most... >=20 > if (isnull($_GET['variable'])) { > $newname=3D$_POST['variable']; > } else { > $newname=3D$_GET[['variable']; > } >=20 > versus >=20 > [text show=3Df]varname=3D[variable][/text] Unfortunately your 5 year old snippet is showing its age. Since PHP = 4.1.0 there has been a $_REQUEST array that carries the contents of = $_POST and $_GET (and $_COOKIE too) So the code these days to match your WebDNA would be... And... >=20 > $value) { > echo $key . " - " . $value . "
"; > } > foreach ($_POST as $key=3D>$value) { > echo $key . " - " . $value . "
"; > } ?> >=20 > versus >=20 > [formvariables] > [name] - [value]
> [/formvariables] >=20 becomes... $value){ echo $key . " - " . $value . "
"; }?> Cheers Paul Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] WebDNA vs. php war ;-) (Paul Willis 2010)
  2. Re: [WebDNA] WebDNA vs. php war ;-) (Dan Strong 2010)
  3. Re: [WebDNA] WebDNA vs. php war ;-) (Dan Strong 2010)
  4. Re: [WebDNA] WebDNA vs. php war ;-) (Paul Willis 2010)
  5. Re: [WebDNA] WebDNA vs. php war ;-) (Bob Minor 2010)
  6. Re: [WebDNA] WebDNA vs. php war ;-) (Donovan Brooke 2010)
  7. Re: [WebDNA] WebDNA vs. php war ;-) (Dan Strong 2010)
  8. Re: [WebDNA] WebDNA vs. php war ;-) (Donovan Brooke 2010)
  9. Re: [WebDNA] WebDNA vs. php war ;-) (Matthew Bohne 2010)
  10. Re: [WebDNA] WebDNA vs. php war ;-) (Donovan Brooke 2010)
  11. Re: [WebDNA] WebDNA vs. php war ;-) (Donovan Brooke 2010)
  12. Re: [WebDNA] WebDNA vs. php war ;-) (Matthew Bohne 2010)
  13. Re: [WebDNA] WebDNA vs. php war ;-) (Matthew Bohne 2010)
  14. Re: [WebDNA] WebDNA vs. php war ;-) (Dan Strong 2010)
  15. Re: [WebDNA] WebDNA vs. php war ;-) (Matthew Bohne 2010)
  16. Re: [WebDNA] WebDNA vs. php war ;-) (Dan Strong 2010)
  17. Re: [WebDNA] WebDNA vs. php war ;-) (Donovan Brooke 2010)
  18. Re: [WebDNA] WebDNA vs. php war ;-) (Matthew Bohne 2010)
  19. Re: [WebDNA] WebDNA vs. php war ;-) (Dan Strong 2010)
  20. Re: [WebDNA] WebDNA vs. php war ;-) (Paul Willis 2010)
  21. Re: [WebDNA] WebDNA vs. php war ;-) (Dan Strong 2010)
  22. Re: [WebDNA] WebDNA vs. php war ;-) (christophe.billiottet@webdna.us 2010)
  23. [WebDNA] WebDNA vs. php war ;-) (Dan Strong 2010)
I don't want to be the PHP defender as I've said before I agree WebDNA = is much simpler but... On 19 Feb 2010, at 20:37, Matthew Bohne wrote: > Or, the one that irks me the most... >=20 > if (isnull($_GET['variable'])) { > $newname=3D$_POST['variable']; > } else { > $newname=3D$_GET[['variable']; > } >=20 > versus >=20 > [text show=3Df]varname=3D[variable][/text] Unfortunately your 5 year old snippet is showing its age. Since PHP = 4.1.0 there has been a $_REQUEST array that carries the contents of = $_POST and $_GET (and $_COOKIE too) So the code these days to match your WebDNA would be... And... >=20 > $value) { > echo $key . " - " . $value . "
"; > } > foreach ($_POST as $key=3D>$value) { > echo $key . " - " . $value . "
"; > } ?> >=20 > versus >=20 > [formvariables] > [name] - [value]
> [/formvariables] >=20 becomes... $value){ echo $key . " - " . $value . "
"; }?> Cheers Paul Paul Willis

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebCat2b13MacPlugIn - more [date] problems (1997) expired beta (1997) SKU lookup (1997) # fields limited? (1997) webcat- multiple selection in input field (1997) A helpful tip to avoid pulling an Aaron OT (2000) Client-side Image Maps and WebCat? (1998) Ongoing group search problems ... (1997) Problems setting MIME Headers (1998) [WebDNA] DBServer.exe Max CPU (2014) Exclamation point (1997) ConvertChars? (1998) random prob (2003) WebCatalog NT beta 18 now available (1997) Combining Searches (1998) Major bug report on rootbeer (1997) WebCatalog 2.0.1 for Windows released! (1997) GuestBook example (1997) Country & Ship-to address & other fields ? (1997) [no_cache]?! (2000)