what 's the problem of my php syntax

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
chings
-


Joined: 19 Apr 2003
Posts: 6

PostPosted: Mon Apr 28, 2003 4:11 am    Post subject: what 's the problem of my php syntax Reply with quote

there is a file called , front.php

when i try to type this URL in browswer

http://localhost/front.php?member=tc

------------syntax under front.php-------

<! echo $member !>

_----------------------------------------------


it returns nothing . what 's wrong . i supposed to output " tc "
Back to top View user's profile Send private message
chings
-


Joined: 19 Apr 2003
Posts: 6

PostPosted: Mon Apr 28, 2003 6:10 am    Post subject: Reply with quote

<? not <! , i typed it wrongly here .
Back to top View user's profile Send private message
TheLinker
-


Joined: 05 Apr 2002
Posts: 165
Location: Oslo, Norway

PostPosted: Mon Apr 28, 2003 8:10 am    Post subject: Re: what 's the problem of my php syntax Reply with quote

Try this:
Code:
<?php echo $_GET['member'] ?>

Also checkout this link: http://www.php.net/manual/en/language.variables.external.php
Back to top View user's profile Send private message Visit poster's website
chings
-


Joined: 19 Apr 2003
Posts: 6

PostPosted: Mon Apr 28, 2003 8:14 am    Post subject: Reply with quote

the problem is on my server


i run phpBB , phpNuke great

but sxxx.php?dfdf=dfdfsdfsdfdsf doesn't work on my server

but running great in another which is running apache . i 'm looking for the problem which is on php or aprelium
Back to top View user's profile Send private message
TheLinker
-


Joined: 05 Apr 2002
Posts: 165
Location: Oslo, Norway

PostPosted: Mon Apr 28, 2003 12:33 pm    Post subject: Reply with quote

If you run your script, http://localhost/front.php?member=tc, you can print out the member variable like this:
Code:
<?php echo $_GET['member'] ?>

Also read more about how variables from outside PHP should be processed in the above link.
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group