A
|
amirgulamali author 8/8/2006 |
anyone? does READ ONLY conflict with the REQUIRED field.. or shall i ask, can a REQUIRED field be "VIEWED" as READ ONLY ?.. i dont see any reason why it shoudnt.. |
J
|
Jane 8/9/2006 |
Amir, |
W
|
wrjost 8/9/2006 |
Hello, Required field can't be as readonly.
|
J
|
Jane 8/9/2006 |
Wilfried, |
W
|
wrjost 8/9/2006 |
Jane, |
A
|
amirgulamali author 8/9/2006 |
I have other fields which I don’t want to be read only, I only want Student Number to be read only (because if its editable, chanCes are that users might edit it - I don’t want that).. |
J
|
Jane 8/9/2006 |
Amir, |
A
|
amirgulamali author 8/9/2006 |
Ok.. i tried unchecking it from the edit page and Student Number does not appear in hte edit page.. I wish I had it there as read only.. guess this is the conclusion: |
A
|
amirgulamali author 8/9/2006 |
I tried using: echo "<h1>REGISTERED STUDENTS, "."Edit record"." [".StudentNumber."]</h1>";
PHP error happened Technical information Error type 8 Error description Use of undefined constant StudentNumber - assumed 'StudentNumber' URL localhost/TRY1/_students_edit.php?editid=3 Error file C:\wamp\www\TRY1\_students_edit.php Error line 224 SQL query select `entry_id`, `Username`, `FirstName`, `LastName`, `StudentNumber`, `Email`, `Major`, `InternationalStudent`, `AnnualFeePaid`, `EnrollStudentin`, `CoursesCompleted`, `Comments` From `_students` where `entry_id`=3
|
![]() |
Alexey admin 8/10/2006 |
Amir, LogInfo($strSQL); $rs=db_query($strSQL,$conn); $data=db_fetch_array($rs); and move it just before the line you modified: echo "<h1>REGISTERED STUDENTS, "."Edit record"...
echo "<h1>REGISTERED STUDENTS, "."Edit record"." [".$data["StudentNumber"]."]</h1>"; |
A
|
amirgulamali author 8/10/2006 |
Thanx alexey, that works but creates more errors in other funtions.. I would rather make the Student Number field read only and not loose any of its funtionalty... I am using edit_events to pass student number to another tables as well |
![]() |
Alexey admin 8/10/2006 |
Amir, |