Howdy, Stranger!

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

Categories

array

nov8998nov8998 Member Posts: 5
hi, can somebody help me in array problem.Below is part of my coding:
<?PHP<br /> for ($intBilU=1 ;$intBilU<=3;$intBilU++) <br /> { echo "" . " NAME="txtUName" SIZE="50">" . "" . " NAME="txtUProg" SIZE="50">" . "" . " NAME="txtGradYr" SIZE="5" MAXLENGTH="4">";}?>
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++)<br /> {
$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

  • Johnny13Johnny13 Member Posts: 128
    I dont see a Submit button in your code,it seems your Form is incomplete..Read
    http://programmersheaven.com/c/MsgBoard/read.asp?Board=33&MsgID=251391 for an example.
Sign In or Register to comment.