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:
Nested tags count question (1997)
emailer setup (1997)
WebCatalog for Linux users!! (2000)
Please post more "exceptions to the rules" ... (2005)
Upload and append to a db (2002)
Separate SSL Server (1997)
Mixing and/or in searches (1998)
textarea inputs and returns (1999)
Digest for 4/18/97 (1997)
Running _every_ page through WebCat ? (1997)
Mozilla/4. and Browser Info.txt (1997)
Serving images from databases (1998)
[defined]ish (1997)
Erotic Sites (1997)
Faxing orders in place of email (1997)
question: webmerchant connection (1997)
[CART] (1997)
V4, simultaneous release? (2000)
[WebDNA] Here's how you can help (2008)
[showif] question (2000)