Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

-> treated as a closing tag instead of an array tool??

1 view
Skip to first unread message

Paul Fitz

unread,
Nov 7, 2002, 1:31:05 AM11/7/02
to
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

oggei

unread,
Nov 7, 2002, 2:16:12 AM11/7/02
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Paul Fitz wrote:

> whenever I F12 preview the page in question, it sees the -> as a closing

afaik, f12 previews directly from browser, not passing on server, so that is
not a problem of what appears outside first ->, but what appears between <?
and -> (it seems strange to me that browser doesn't complain about it) :)
Did you try to test it without dw ? Connecting to localhost and so on ?

- --
ciao

oggei
gpg --keyserver keys.indymedia.org --recv-keys E6887855
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE9yMD7ZjvifOaIeFURAi8cAJ9kDkIz9bMy9knKoyxVjek/bhupBQCg8bVJ
/HaVgjFj2M6AX90+gGb2qaM=
=Zxl5
-----END PGP SIGNATURE-----

Juha Suni

unread,
Nov 7, 2002, 3:27:49 AM11/7/02
to
"Paul Fitz" <pf...@dod.com> wrote in message
news:3dca08a4$1...@news.comindico.com.au...

> 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..??

You can set up a testing server in DW (at least MX), so that when you push
F12 to preview, it automatically uploads to the server that parses through
the PHP as supposed and shows the result. DW has PHP-syntax highlighting but
it certainly does not parse through the PHP or really understand anything of
it. include is the only exception: DW can show the included file embedded
where it should be.

For PHP scripting, you better stay in the code-window, if doing anything
more than small insertions with PHP. Then use preview with the testing
server to see how it prints out.

--
Suni


0 new messages