array - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

array

nov8998nov8998 Posts: 5Member
hi, can somebody help me in array problem.Below is part of my coding:
<?PHP
for ($intBilU=1 ;$intBilU<=3;$intBilU++)
{ echo "<TR>University # $intBilU
" .
"
" .
"
" .
"
" .
"
" .
"
";}
?>
Program/Achievement
Graduation Year
after user click button Submit, i want each value will put in array.
the coding i've done not work :
for ($intBilU=1 ;$intBilU<=3;$intBilU++)
{
$dbUName[intBilU]=Trim($_POST['txtUName']);
$dbUProg[$intBilU]=Trim($_POST['txtUProg']);
$dbUGradYr[$intBilU]=Trim($_POST['txtGradYr']);
}
the eg. output should be as below:
$dbUName[1]="A University"
$dbUProg[1]="Science"
$dbUGradYr[1]="1992"
$dbUName[2]="B University"
$dbUProg[2]="art"
$dbUGradYr[2]="1999"
hope can help me plzzzzzzzzzz...


Comments

Sign In or Register to comment.