On Fri, 2011-05-20 at 19:46 +0430, Negin Nickparsa wrote:
> the thing that is important to me is setting session
> because i want the tables of the one that clicked be showed on patient.php
> how can i change my wrong code?
You have to realise that PHP code runs on the server, all before it
send
the thing that is important to me is setting session
because i want the tables of the one that clicked be showed on patient.php
how can i change my wrong code?
i can't understand what u wanted to tell me.
i want to when clicking on the sub button then go to another page i wrote it
but i can't solve this problem:
php runs the code and "then" i click it
i don't know,how can i solve it
any suggestion?
Negin,
You cannot "pause" PHP. You need to do your checking and header() redirect on a
processing page that your form is submitting to.
file process
form.php Displays form
process.phpdecide what to you, redirect to secondary page
secondary.php display your secondary page
O
===>if(array_key_exists('sub5',$_POST))
this line runs before i clicked on the submit
while(true) before this line can't work then how can i solve the time
problem?
here is the whole code:
0)
{
echo "";
for($i=0;$i<$num;$i++)
{
$row=mysql_fetch_row($result);
echo "";
for($j=0;$j<$num1;$j++)
{
echo"
5 matches
Mail list logo