Re: PHP and FORM
| From: | Ampersand | Date: | Tue, 03 Oct 2000 11:51:46 +0000 |
| Subject: | Re: PHP and FORM | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-18409@lists.php.net to get a copy of this message | ||
YES..AT LAST.. Thank you very much :)))
----- Original Message -----
From: Maxim Maletsky <maxim@japaninc.net>
To: 'Ampersand' <ampersand_tr@yahoo.com>
Cc: 'PHP General List. (E-mail)' <php-general@lists.php.net>
Sent: Tuesday, October 03, 2000 2:46 PM
Subject: RE: [PHP] PHP and FORM
>
> put this whenever you want to switch:
>
> if($id == '3')
> {
> include("$DOCUMENT_ROOT/any/folder/about.php");
> Exit;
> }
>
> or in the header
>
> Header begines ="<?
> if($id == '3')
> {
> echo '../about.php';
> Exit;
> }
>
> "?>
>
> This is a "mechanic way", above was a dynamic one....
>
>
> -----Original Message-----
> From: Ampersand [mailto:ampersand_tr@yahoo.com]
> Sent: Tuesday, October 03, 2000 8:43 PM
> To: PHP
> Subject: Re: [PHP] PHP and FORM
>
>
> Ok.I did it..
> No one and last question..
> How can i redirect to a page with php.
> for examples go.php?id=3 means ../about.php
>
>
> ----- Original Message -----
> From: Maxim Maletsky <maxim@japaninc.net>
> To: 'Bilgehan' <bilgehan.yildirim@veezy.com>
> Cc: 'PHP General List. (E-mail)' <php-general@lists.php.net>
> Sent: Tuesday, October 03, 2000 2:35 PM
> Subject: RE: [PHP] PHP and FORM
>
>
> > You already got it:
> >
> > SELECT url FROM Location WHERE ID=$id
> >
> > means that it will select 'url' in the row where the column 'id'
> > equals
to
> > whatever $id equals.
> >
> > add it manually to your url, like file.php?id=0001
> > and you'll see what MySQL will pull you out.
> >
> > -----Original Message-----
> > From: Bilgehan [mailto:bilgehan.yildirim@veezy.com]
> > Sent: Tuesday, October 03, 2000 8:22 PM
> > Cc: PHP
> > Subject: Re: [PHP] PHP and FORM
> >
> >
> > Ok that worked :)) Thanks..
> > Another question :
> >
> > SELECT url FROM Location WHERE ID=$id
> >
> > I have a db with id and url sections in a table.
> > have can i get url of id ?
> >
> >
> >
> > ----- Original Message -----
> > From: Charles Killian <Charles@AlcatrazDesignGroup.com>
> > To: Bilgehan <bilgehan.yildirim@veezy.com>
> > Sent: Tuesday, October 03, 2000 2:16 PM
> > Subject: Re: [PHP] PHP and FORM
> >
> >
> > > No parsing is necessary. Try this after the submit:
> > >
> > > print $id;
> > >
> > > php automatically assigns the get/post/cookie variables a variable.
> > >
> > > Charles
> > >
> > >
> > > ----- Original Message -----
> > > Sent: Tuesday, October 03, 2000 4:10 AM
> > > Subject: [PHP] PHP and FORM
> > >
> > >
> > > Hi there!
> > > I will try to explain my problem with an example
> > >
> > > I have a link <a href="go.php?id=4">About</a>
> > > and i cache the query string in go.php like
> > > $info = $QUERY_STRING;
> > >
> > > now how can i parse the $info to id and id number..
> > >
> > > Sorry for my explanation. :)
> > >
> > >
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> >
>
>
> --------------------------------------------------------------------------
--
> ----
>
>
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
>
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com