Keep from updating ipaddress field?

libraguy78 06 Nov, 2010
Hoping I can get a small hand here, since I'm lost on this one:

The form setup we have is once the form has been submitted and saved, it then needs to be approved (done by marking a TRUE or FALSE on a table entry). The problem seems to be that once one of the Admin for the site approve or deny one of the forms submitted, it overwrites the original "ipaddress" field with the Admin's IP. We need to keep the original IP from the initial person who submitted it, but I'm at a lost on how to keep the form from overwriting the ipaddress field on saving the updated information (approved or denied). I hope this is clear enough to understand?

Steps:
1- Person Submits form
2- Form shows up for admins to review
3- Admin approves or denied form (which saves extra entries to the tables)
GreyHead 06 Nov, 2010
Hi libraguy78 ,

Hmmm . . . it's built into the Autogenerated code and not easy to bypass without hacking files or hand-coding the DB save.

Instead I suggest that you add an extra column for user_ip and transfer the users address to this when the form content is reviewed. You can do that with a hidden input where the name is user_ip and the value is set from the previously saved IP address.

Bob
libraguy78 06 Nov, 2010
Ah! Why didn't i think of that. That will work just fine. Thanks Grey!

Just purchased my validation too. This product rocks.🙂
This topic is locked and no more replies can be posted.