yolond
Technical User
- Jan 5, 2001
- 9
If I know the line # in my file of the line I want to modify, how do I modify it and put it back?
This is what I have so far, but don't know what to do next.
This is what I have so far, but don't know what to do next.
Code:
open(LIST, $users) || &ErrorMsg("Could not open users file.");
@data=<LIST>;
close(LIST);
print "Content-type: text/html\n\n";
chop(@data[$id]);
($user,$company,$pass)=split(/\:/,@data[$id]);
print qq~
<table>
<tr><td align=right><$font color=009680><b>Username: </b></font></td><td><input type="text" name="username" value="$user" size=20></td></tr>
<tr><td align=right><$font color=009680><b>Provider: </b></font></td><td><input type="text" name="provider" value="$company" size=20></td></tr>
<tr><td align=right><$font color=009680><b>Password: </b></font></td><td><input type="password" name="password" value="$pass" size=20></td></tr>
<tr><td colspan=2 align=center><br><input type="submit" name="submit" value="Modify User Info"></td></tr>
~;
}