Howdy, Stranger!

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

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.