You are here: Re: [PHP] HELP! « PHP « IT news, forums, messages
Re: [PHP] HELP!

Posted by Stephen Johnson on 09/29/22 11:13

Yes --

In your example - $result_id would be accessed on page2 as

$result_id = $_GET['result_id'];

Then through out your script on page 2 you could access $result_id.

Hope that helps.


是--
在您的例子- $result_id 會被獲取在頁2

$result_id = $_get['result_id ' ];

然後通過在您的劇本之外在頁2 您能訪問 $result_id。

希望幫助。

<?php
/*

Stephen Johnson c | eh
The Lone Coder

http://www.thelonecoder.com
stephen@thelonecoder.com

562.924.4454 (office)
562.924.4075 (fax)

continuing the struggle against bad code

*/
?>

> From: 王成乔 <wangchq@china-channel.com>
> Date: Wed, 13 Apr 2005 11:00:36 +0800
> To: <php-general@lists.php.net>
> Subject: [PHP] HELP!
>
> HI,
>
> Any body give me any hinder I would be very appreciated!
>
> I want to use a parameter of fist page in the second page, how can I realize
> it.
>
> For example, there is a segment in the first page:
>
> “<tr>
>
> <td>com</td><td><a
> href='/cgi-bin/english/E_new_domain_list.cgi?domainType=1'><? echo
> $num_com;?></a></td>
>
> <td><a href="autorenew.php?$result_id = 1"><? echo
> $buy_com_num;?></a></td>
>
> </tr>”
>
> But I wan to use the parameter “$result_id” in the second
> page(autorenew.php) :
>
> “switch($result_id){
>
> case "1" :
>
> ……..;
>
> Break;
>
> case "2" :
>
> ……..;
>
> Break;
>
> Can the parameter “$result_id” pass from fist page to second
> page(autorenew.php)?
>
> Sincerely yours,
>
> justin
>
> E-mail/MSN: wangchq@china-channel.com
>
>
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация