Re: [WebDNA] WebDNA vs. php war ;-)
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 104830
interpreted = N
texte = Whoops. Didn't real through... disregard. But still, if anybody wants to=20correct the php code *in the video* I'm happy to re-do it.-Dan Stronghttp://www.DanStrong.comOn 2/20/2010 9:14 AM, Dan Strong wrote:> Please provide corrected code and I will make a new video.>> Paul Willis
wrote:>> =20>> 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:>>>> =20>>> Or, the one that irks me the most...>>>>>> if (isnull($_GET['variable'])) {>>> $newname=3D$_POST['variable'];>>> } else {>>> $newname=3D$_GET[['variable'];>>> }>>>>>> versus>>>>>> [text show=3Df]varname=3D[variable][/text]>>> =20>> 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 . "
";>>> } ?>>>>>>> versus>>>>>> [formvariables]>>> [name] - [value]
>>> [/formvariables]>>>>>> =20>> becomes...>>>> $value){>> echo $key . " - " . $value . "
";>> }?>>>>> Cheers>>>> Paul>>>> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list.>> To unsubscribe, E-mail to:>> archives: http://mail.webdna.us/list/talk@webdna.us>> old archives: http://dev.webdna.us/TalkListArchive/>> Bug Reporting: http://forum.webdna.us/eucabb.html?page=3Dtopics&catego=ry=3D288>> =20> N=18=EF=BF=BD=EF=BF=BD=EF=BF=BD,j=07=EF=BF=BD=EF=BF=BD=C7=A7=EF=BF=BD=EF==BF=BD2=EF=BF=BD=EF=BF=BD=EF=BF=BDq=EF=BF=BD=EF=BF=BD{*.j=EF=BF=BD=EF=BF=BD==EF=BF=BD=EF=BF=BD=1C=EF=BF=BD&=EF=BF=BDv=EF=BF=BD-=EF=BF=BD=E9=9A=8AX=EF==BF=BD=EF=BF=BDX=EF=BF=BD=EF=BF=BD=D6=A5=EF=BF=BD=07=EF=BF=BDvv=EF=BF=BD=EF==BF=BD:.=EF=BF=BD=CB=9B=EF=BF=BD=EF=BF=BD=EF=BF=BDm=EF=BF=BD&j)m=EF=BF=BD==D6=A5=EF=BF=BDW=EF=BF=BD=EF=BF=BD=EF=BF=BD=1Em=EF=BF=BD=DA=BA=C6=ABr=18=EF==BF=BDz=EF=BF=BDm=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF==BF=BD=EF=BF=BD=DD=9D=EF=BF=BD=EF=BF=BD=EF=BF=BDX=EF=BF=BD=EF=BF=BD=EF=BF==BDZ=EF=BF=BDL=1Em=EF=BF=BD=DA=BA=EF=BF=BD%u=EF=BF=BD=DC=86+=DE=B2=1Bm=EF==BF=BD=EF=BF=BD=EF=BF=BDz=EF=BF=BD=1Em=EF=BF=BD=DA=BA=EF=BF=BD=EF=BF=BDjY==0B=EF=BF=BD=EF=BF=BD@=EF=BF=BD=EF=BF=BDb=EF=BF=BD=EF=BF=BD=EF=BF=BD=04^=EF==BF=BD=EF=BF=BD=EF=BF=BDx!=EF=BF=BD=EF=BF=BD=7F=EF=BF=BD=EF=BF=BD+=EF=BF=BD=l=1Em=EF=BF=BD=DA=BA=EF=BF=BD=DE=B9=C6=9Bn=1Bf=EF=BF=BD=EF=BF=BD=EF=BF=BD=x=0B=EF=BF=BD',q=EF=BF=BD^=EF=BF=BD=EF=BF=BD=EF=BF=BD=03o
Associated Messages, from the most recent to the oldest:
Whoops. Didn't real through... disregard. But still, if anybody wants to=20correct the php code *in the video* I'm happy to re-do it.-Dan Stronghttp://www.DanStrong.comOn 2/20/2010 9:14 AM, Dan Strong wrote:> Please provide corrected code and I will make a new video.>> Paul Willis wrote:>> =20>> 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:>>>> =20>>> Or, the one that irks me the most...>>>>>> if (isnull($_GET['variable'])) {>>> $newname=3D$_POST['variable'];>>> } else {>>> $newname=3D$_GET[['variable'];>>> }>>>>>> versus>>>>>> [text show=3Df]varname=3D[variable][/text]>>> =20>> 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 . "
";>>> } ?>>>>>>> versus>>>>>> [formvariables]>>> [name] - [value]
>>> [/formvariables]>>>>>> =20>> becomes...>>>> $value){>> echo $key . " - " . $value . "
";>> }?>>>>> Cheers>>>> Paul>>>> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list.>> To unsubscribe, E-mail to:>> archives: http://mail.webdna.us/list/talk@webdna.us>> old archives: http://dev.webdna.us/TalkListArchive/>> Bug Reporting: http://forum.webdna.us/eucabb.html?page=3Dtopics&catego=ry=3D288>> =20> N=18=EF=BF=BD=EF=BF=BD=EF=BF=BD,j=07=EF=BF=BD=EF=BF=BD=C7=A7=EF=BF=BD=EF==BF=BD2=EF=BF=BD=EF=BF=BD=EF=BF=BDq=EF=BF=BD=EF=BF=BD{*.j=EF=BF=BD=EF=BF=BD==EF=BF=BD=EF=BF=BD=1C=EF=BF=BD&=EF=BF=BDv=EF=BF=BD-=EF=BF=BD=E9=9A=8AX=EF==BF=BD=EF=BF=BDX=EF=BF=BD=EF=BF=BD=D6=A5=EF=BF=BD=07=EF=BF=BDvv=EF=BF=BD=EF==BF=BD:.=EF=BF=BD=CB=9B=EF=BF=BD=EF=BF=BD=EF=BF=BDm=EF=BF=BD&j)m=EF=BF=BD==D6=A5=EF=BF=BDW=EF=BF=BD=EF=BF=BD=EF=BF=BD=1Em=EF=BF=BD=DA=BA=C6=ABr=18=EF==BF=BDz=EF=BF=BDm=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF==BF=BD=EF=BF=BD=DD=9D=EF=BF=BD=EF=BF=BD=EF=BF=BDX=EF=BF=BD=EF=BF=BD=EF=BF==BDZ=EF=BF=BDL=1Em=EF=BF=BD=DA=BA=EF=BF=BD%u=EF=BF=BD=DC=86+=DE=B2=1Bm=EF==BF=BD=EF=BF=BD=EF=BF=BDz=EF=BF=BD=1Em=EF=BF=BD=DA=BA=EF=BF=BD=EF=BF=BDjY==0B=EF=BF=BD=EF=BF=BD@=EF=BF=BD=EF=BF=BDb=EF=BF=BD=EF=BF=BD=EF=BF=BD=04^=EF==BF=BD=EF=BF=BD=EF=BF=BDx!=EF=BF=BD=EF=BF=BD=7F=EF=BF=BD=EF=BF=BD+=EF=BF=BD=l=1Em=EF=BF=BD=DA=BA=EF=BF=BD=DE=B9=C6=9Bn=1Bf=EF=BF=BD=EF=BF=BD=EF=BF=BD=x=0B=EF=BF=BD',q=EF=BF=BD^=EF=BF=BD=EF=BF=BD=EF=BF=BD=03o
Dan Strong
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:
Template Not Found (1998)
Some Questions (1997)
when is date system date or order date? (1997)
WebDNA 4.5 not starting on boot? (2002)
WebCat2 beta 11 - new prefs ... (1997)
mySQL numfound (2006)
mem leak: webcat (2001)
cybercash (1998)
Number searching/formats (1998)
Date Formats (1997)
emailer (1997)
E-mailer application times out (1998)
[Q] Novice's question (1997)
Set Line Item (1999)
[WebDNA] PayPal Express Checkout for WebDNA (2009)
Blank Orders (2005)
Major Security Hole IIS NT (1998)
[LOOKUP] (1997)
creating writefile data from a nested search (1997)
Date problems-more (1997)