Jump to content

[SOLVED] Get textbox values from URL


m4x3vo

Recommended Posts

$cookie = $_COOKIE["uid"];
for ($counter = 0; $counter <= 139; $counter++)
{
if ($options[$counter] != null)
{
$options2 = $_GET['options[$counter]'];
mysql_query("UPDATE user_ach SET rank='$options2' WHERE ach_id='$counter' AND user_id='$cookie'") 
or die(mysql_error());  

}
}

 

Thats my code.  Im attempting to grab from a url the values of 139 textboxes.  Some textboxes may not be filled out, the url looks something like this.  .php?options[1]=343&options[2]=&options[3]=&options[4]=254&options[5]=

 

It goes up to options[139].  My script is not working, anyone have any ideas? 

Link to comment
https://forums.phpfreaks.com/topic/161868-solved-get-textbox-values-from-url/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.