From: Julian R C B. <J.B...@dc...> - 2003-03-18 13:12:35
|
Dear All, I manage the website for a small club. I want to create an events listing which members can update themselves, so they can add/change/delete an event record. They would set a password (for that event) when adding an event and give the same password to change or delete the event. So far, I have added a line to add a password entry field to phpMyEdit.class.php after the code to add the delete button to the foot of the listing: if ($this->delete_enabled()) { echo '<input'; if (! $total_recs) { echo ' disabled'; } echo ' type="submit" name="operation" value="'.$this->\ labels['Delete'].'"> '; } // if else } echo ' <input type="password" name="inputpassword" size=12 \ maxlength=12 value="inputpassword" >'; Now I need to ensure the encrypted inputpassword matches the stored one for that event before displaying the change or delete pages. Any ideas how I might do that? Long term, I'd like such a feature built in to phpMyEdit. Thanks Julian -- War on Iraq. Not in my name. www.stopwar.org.uk Julian Briggs, Director of IT, Department of Computer Science, University of Sheffield, Regent Court, 211 Portobello St, Sheffield S1 4DP, UK Phone +44 (0) 114-222-1851. Fax +44 (0) 114-222-1810 j.b...@sh... http://www.dcs.shef.ac.uk/~julian |