You may want to be more specific and post some actual code here. Judging by your subject, you are having trouble getting multiple sets of number (seperated by spaces) into the $classid variable.
If this is correct, it's most likely because your passing it in the URL like this...
"http://localhost/program.php?classid=1234 5678 9012 3456"
In the above scenario, only the first "1234" would be passed, because you can't pass a " " in the url like that. You need to do a urlencode on them is the program passing it in the URL... i.e.
<?php
// Pass multiple numbers in url....
$classid="1234 5678 9012 3456";
$classid=urlencode($classid);
echo "<A HREF=\"http://localhost/program.php?$classid\">Click Here</A>";
?>
This would yield a link that points to
program.php?1234+5678+9012+3456
On the tail end, you'll need to "urldecode" the $classid variable before you you is to populate the classid input text box in you HTML code...
<?php
// Sample program.php
$classid=urldecode($classid);
// Misc HTML Header, Form, etc...
echo "<input type=text name=classid size=64 value=$classid>";
// Misc HTML.. close form tag, etc...
?>