Hi,
thanks for replying.
No, its looking for get, and globals is on.
This is my code:
*****************Start code*****************
<?
session_start();
header("Cache-control: private"); //IE 6 Fix
require_once("configbwh.php");

$type=$_GET[type];
$_SESSION['type'] = $type;

if(!isset($type))
{
include("my.top.php");
 print("ERROR: 69723. Please contact support");
 include("my.bottom.php");
 exit;
}

if(session_is_registered('my_user')){}
 else{
   $_SESSION['id'] = $id;
   header("Location: my.login.php");
   exit;
  }



$result = count ($id);
if($result<1 || $result>5)
{include("my.top.php");
Print("Error: Plans not saved.<br>You have not either not chosen a plan to
add to your MyList account <br>or you have tried to add more than 5 plans at
a time to your MyList account.<br>Please press your back button to correct
the problem.");
 include("my.bottom.php");
exit;
}

$connected=mysql_connect ("$hostt", "$userr", "$passs") or die ('I cannot
connect to the database because: ' . mysql_error());
mysql_select_db ("$db");


$my_user=$_SESSION['my_user'];
$my_ccno=$_SESSION['my_ccno'];


/* the below lines take the string (nname) from between the [] of the id[]
and the the value of the id[] (eg id[]=23 where 23 is the value) then
inserts it into the db thanks to John Holmes.
*/
foreach($id as $nname => $pppno)
{
$q="insert into mylist_slave
values('','$pppno','$nname','$type','$my_user',$my_ccno)";
  if(!($rs = mysql_query($q)))
  { echo "Query failed for ID: $r"; exit; }
}

   include("my.top.php");
   print("Data has been successfully entered.");
   include("my.bottom.php");
   exit;

?>

****************End Code*************

This was working fine....I just cant understand it.

Kindly reply,
-Ryan.



----- Original Message -----
From: "Curt Zirzow" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 26, 2003 4:05 PM
Subject: Re: [PHP] funny output


> * Thus wrote Ryan A ([EMAIL PROTECTED]):
> > Hi everyone,
> > I am having some funny output and funny things happening to my scripts
since
> > I changed hosts...
> > my login scripts were working fine before but now they dont seem to
> > work...also there is a hidden text box appearing in the
> > code that i didnt write...this is it:
> > <input type="hidden" name="PHPSESSID"
> > value="ad2e5a31727b2b4eb28b2d0c2d6ee67e" />
>
> The login script is looking in the $_POST var correct?
>
>
> Curt
> --
> "I used to think I was indecisive, but now I'm not so sure."
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to