🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.comp.lang.php
3 messages
3 total messages Started by Paul Fitz Thu, 07 Nov 2002 06:31
-> treated as a closing tag instead of an array tool??
#45
Author: Paul Fitz
Date: Thu, 07 Nov 2002 06:31
30 lines
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
Re: -> treated as a closing tag instead of an array tool??
#46
Author: oggei
Date: Thu, 07 Nov 2002 07:16
23 lines
2139 bytes
-----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-----
Re: -> treated as a closing tag instead of an array tool??
#47
Author: Juha Suni
Date: Thu, 07 Nov 2002 08:27
25 lines
2559 bytes
"Paul Fitz" <pfitz@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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads