Avoiding the $_POST
Posted: Sun Nov 30, 2008 7:34 pm
I'm trying to create a form with a loop.. my only problem is that the server I'm working with, wants all the variables defined at the start of the file.
For instance, just calling $countofrows does not work. I need to add the line, $countofrows = $_POST['countofrows']; Which is okay when I'm asking for defined variables.. but the number of records I'm looping are dynamic. : (
Is there a way around this without editting the globals? I don't have access to them, it's not my server, it' a clients.
Code: Select all
$i = 0;
while($i<=$countofrows)
{
$checking0 = "remove_" . $i;
$checkforcheck = $$checking0;
echo "$checkforcheck<br>";
if($checkforcheck == "checked")
{
// Box has been checked, find Unique ID for deletion
$checking1 = "msg_" . $i;
$uniqueid = $$checking1;
echo "$uniqueid<br><br>";
//$query = "delete from Leads where organization = '$uniqueid'";
//$result = mysql_query($query);
}
$i++;
}Is there a way around this without editting the globals? I don't have access to them, it's not my server, it' a clients.