Hello, fellow DBHeads! I'm having a most peculiar problem and I'm hoping that someone might be able to see something that I'm missing, because I have no idea what is going on. I should start off by saying that I'm using the Relational Mod and the file Upload Mod, as well a few others that shouldn't really matter so much (like SSI and what not). The problem I'm having is this:
I have it set in the CFG file of the "parent" database that users are only able to modify their own record. ($auth_modify_own = 1;) and everything goes just fine as far as adding and viewing and what not goes. The problem comes in modifying. For some reason, when users go to modify their record they can get into the modify_record_form just fine, but when the hit the "Modify Record" button to submit the changes, the database tells them that they are "Not Authorized to Modify this record." Now, theoretically, they should be the only ones who ARE authorized to modify the record. I checked to make sure that the UserID they're logged in with and the UserID of the record are the same (you can see where I have those variables printing out on the actual form when you view my code... They're the same). I'm just dumbfounded and frustrated beyond hope! Anyone who can help me out with this problem will officially receive nothing but utter worship from me for the next seven months. (I would do eight months, but my February is booked *grin*).
To take a look at the functioning database (and to try and modify a record) go ahead and go to this address:
http://www4.addr.com/...apter.cgi?db=chapter
You can log in there with
username: alabama
password: alabama35
There is a record in there already for this user, so feel free to try modifying it and see what you get.
If you would like to view the code of my files you can do so at the following addresses:
CFG File: http://www4.addr.com/...f/gt/chapter_cfg.txt
CGI File: http://www4.addr.com/...f/gt/chapter_cgi.txt
HTML File: http://www4.addr.com/...t/chapterhtml_pl.txt
Many many thanks in advance crew. You may noticed I've renamed a couple of the subroutines in the html file and what not, but the overall structure of DBMan hasn't changed much. Hope there's someone out there kind enough to help. Cheers!
WretchedHive
I have it set in the CFG file of the "parent" database that users are only able to modify their own record. ($auth_modify_own = 1;) and everything goes just fine as far as adding and viewing and what not goes. The problem comes in modifying. For some reason, when users go to modify their record they can get into the modify_record_form just fine, but when the hit the "Modify Record" button to submit the changes, the database tells them that they are "Not Authorized to Modify this record." Now, theoretically, they should be the only ones who ARE authorized to modify the record. I checked to make sure that the UserID they're logged in with and the UserID of the record are the same (you can see where I have those variables printing out on the actual form when you view my code... They're the same). I'm just dumbfounded and frustrated beyond hope! Anyone who can help me out with this problem will officially receive nothing but utter worship from me for the next seven months. (I would do eight months, but my February is booked *grin*).
To take a look at the functioning database (and to try and modify a record) go ahead and go to this address:
http://www4.addr.com/...apter.cgi?db=chapter
You can log in there with
username: alabama
password: alabama35
There is a record in there already for this user, so feel free to try modifying it and see what you get.
If you would like to view the code of my files you can do so at the following addresses:
CFG File: http://www4.addr.com/...f/gt/chapter_cfg.txt
CGI File: http://www4.addr.com/...f/gt/chapter_cgi.txt
HTML File: http://www4.addr.com/...t/chapterhtml_pl.txt
Many many thanks in advance crew. You may noticed I've renamed a couple of the subroutines in the html file and what not, but the overall structure of DBMan hasn't changed much. Hope there's someone out there kind enough to help. Cheers!
WretchedHive