moisesbr
01-06-2010, 06:06 PM
Hi
I have a .txt file with contains fields separated by ;
as below
name; city; course; address; etc
I want to built a CGI script based on the algorithm below
to look if have a student is enrolled in a course
************************************************
scan the .txt file from top to bottom
If line contains $student_name and $student_course
print '<p align="left"><font face="Arial">Found: '$student_name '</big></font></p>'."\n" ;
continue the scan
If line contains $my_name and $my_city
print '<p align="left"><font face="Arial">Found: '$student_name '</big></font></p>'."\n" ;
*****************************************************
I came from visual foxpro with little experience in web languages
Moises
I have a .txt file with contains fields separated by ;
as below
name; city; course; address; etc
I want to built a CGI script based on the algorithm below
to look if have a student is enrolled in a course
************************************************
scan the .txt file from top to bottom
If line contains $student_name and $student_course
print '<p align="left"><font face="Arial">Found: '$student_name '</big></font></p>'."\n" ;
continue the scan
If line contains $my_name and $my_city
print '<p align="left"><font face="Arial">Found: '$student_name '</big></font></p>'."\n" ;
*****************************************************
I came from visual foxpro with little experience in web languages
Moises