Hi, due to the lack of any good wish list/gift registry program, I'm modifying DBMan into a gift registry (since my birthday is coming up). It has some interesting permissions, I set the default user to be able to view and modify all records. I created a quick submit form button to allow the default user to claim gifts (modify record) by sending them to a page that has all the record information displayed but unedittable, except for the "Claimed By" field in which they can fill in their name. The admin and user who created the record (those with $per_del) view the full edittable fields.
So here's my problem. When the default user clicks on the Claim Gift button, the $rec('fields') aren't filled in. But when the registered user clicks on the Claim Gift button, all the fields are filled in correctly. I put a "if ($per_del)" statement to differentiate between the default user and the registered user, so there's no separate Claim Gift subroutine. If the "if ($per_del)" routine gets the fields passed correctly, shouldn't the "else" routine immediately following it get the fields passed along to it too?
I'm not a programmer, though I can edit pretty well, I'm a medical student. :-) Please help me out? Also, I welcome any suggestions about how to add more practicality and functionality.
http://www.ucsf.edu/synapse/gifts/auth.txt
http://www.ucsf.edu/synapse/gifts/db.txt
http://www.ucsf.edu/...se/gifts/default.txt
http://www.ucsf.edu/synapse/gifts/html.txt
Default List: http://www.ucsf.edu/...iew_records=1&ID=*
Default Item View: http://www.ucsf.edu/...=*&nh=6&mh=1
Use test/test to check logged in views: http://www.ucsf.edu/synapse/gifts/db.cgi
So here's my problem. When the default user clicks on the Claim Gift button, the $rec('fields') aren't filled in. But when the registered user clicks on the Claim Gift button, all the fields are filled in correctly. I put a "if ($per_del)" statement to differentiate between the default user and the registered user, so there's no separate Claim Gift subroutine. If the "if ($per_del)" routine gets the fields passed correctly, shouldn't the "else" routine immediately following it get the fields passed along to it too?
I'm not a programmer, though I can edit pretty well, I'm a medical student. :-) Please help me out? Also, I welcome any suggestions about how to add more practicality and functionality.
http://www.ucsf.edu/synapse/gifts/auth.txt
http://www.ucsf.edu/synapse/gifts/db.txt
http://www.ucsf.edu/...se/gifts/default.txt
http://www.ucsf.edu/synapse/gifts/html.txt
Default List: http://www.ucsf.edu/...iew_records=1&ID=*
Default Item View: http://www.ucsf.edu/...=*&nh=6&mh=1
Use test/test to check logged in views: http://www.ucsf.edu/synapse/gifts/db.cgi