Article View: alt.comp.lang.php
Article #45-> treated as a closing tag instead of an array tool??
From: Paul Fitz
Date: Thu, 07 Nov 2002 06:31
Date: Thu, 07 Nov 2002 06:31
30 lines
2585 bytes
2585 bytes
Hi,
I've just started using php classes and a form validation class in
particlular, to check for empty fields and other stuff.
I'm creating forms which access the class etc. I'm using dreamweaver and
whenever I F12 preview the page in question, it sees the -> as a closing
tag.
I've tried a few different classes and scripts usinf the -> to assign and
each treats it as a closing tag..??
EG. a section of code
----------------------------------------------
require("forms.php");
$subscription=new form_class;
// Everything from the first -> is trated as not PHP!! and is just printed
in the browsew window as text.
$subscription->NAME="subscription_form";
$subscription->METHOD="GET";
$subscription->ACTION=$PHP_SELF;
$subscription->debug="OutputDebug";
I have no idea about this, can anybody help me here?
I'm using PHP 4.2.3 on Apache and Win XP Pro and PHP does everything else
properly..
Thanks for help !!
Cheers,
Paul
Technical Details
Message-ID:
<3dca08a4$1@news.comindico.com.au>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!snewsf0.syd.ops.aspac.uu.net!news1.optus.net.au!optus!news.optus.net.au!53ab2750!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1156bd,68fc2bcab70a5b78,start X-Google-Attributes: gid1156bd,public X-Google-Thread: f9981,68fc2bcab70a5b78,start X-Google-Attributes: gidf9981,public X-Google-Thread: 10701e,68fc2bcab70a5b78,start X-Google-Attributes: gid10701e,public X-Google-Thread: 10b1d3,68fc2bcab70a5b78,start X-Google-Attributes: gid10b1d3,public X-Google-Thread: 1107bb,68fc2bcab70a5b78,start X-Google-Attributes: gid1107bb,public X-Google-ArrivalTime: 2002-11-06 22:31:06 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!snewsf0.syd.ops.aspac.uu.net!news1.optus.net.au!optus!news.optus.net.au!53ab2750!not-for-mail From: "Paul Fitz" <pfitz@dod.com> Newsgroups: alt.comp.lang.php,alt.php,comp.lang.php,cz.comp.lang.php,ufra.lists.php Subject: -> treated as a closing tag instead of an array tool?? Lines: 35 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Original-NNTP-Posting-Host: 203.220.149.200 Message-ID: <3dca08a4$1@news.comindico.com.au> X-Original-Trace: 7 Nov 2002 17:31:00 +1000, 203.220.149.200 Date: Thu, 07 Nov 2002 06:31:05 GMT NNTP-Posting-Host: 203.194.27.1 X-Complaints-To: abuse@comindico.com.au X-Trace: news.optus.net.au 1036650665 203.194.27.1 (Thu, 07 Nov 2002 17:31:05 EST) NNTP-Posting-Date: Thu, 07 Nov 2002 17:31:05 EST Organization: Comindico Australia - reports relating to abuse should be sent to abuse@comindico.com.au