hi everyone, just a new member of this group.
well, first of all i'm just a beginner here in php/mysql so have patience with me.
i'm doing a program (an encoding system actually) where the user encodes the grades of a students in secondary level.
what i wanted to ask is :
1. how can i store all the inputs in an array?
example:
<?php
for (i=1;i=array[];i++) {?>
grade <input type= "text" name="grade">
subject <input type= "text" name="subject">
}
2. how to control keyboard when keypressed?
for example: i pressed the F6 button then it will generate a message box to save your file yes/no/cancel.
thanks in advance.
store input in an array
Moderator: General Moderators
- social_experiment
- DevNet Master
- Posts: 2793
- Joined: Sun Feb 15, 2009 11:08 am
- Location: .za
Re: store input in an array
Code: Select all
<?php
$gradeArray[] = $_POST['grade'];
$subjectArray[] = $_POST['subject'];
?>
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Re: store input in an array
thanks, i'm gonna try this.
how about keyboard controls?
how about keyboard controls?