The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Form builder UserId/Username
#1
Hi,

Just a quick one, would anyone know the best way if using the form builder to include the UserId/UserName (automatically) as a hidden field of the account that submitted the form, ideally not something that someone could use the dev tools in Chrome etc to spoof/change.

What I am basically trying to do is to use the stripe subscription system to allow paying users (have not implemented this yet) to add entries to the database.
From their account on a separate page they will then be able to find their own entries and edit/update/delete them should they have a need.

The latter I imagine would be easy based on pulling a list database queries based on their UserName/UserId etc.

If I have to manually create a form then no problem, just trying to avoid re-inventing the wheel in case this is already built in and I am missing something.


Have had a look in the forms.php and imagine I can add the required function in there BUT as embedded C programmer rather than PHP, I want to make sure I am not opening some vunerability up with that so treading very carefully.


Also there appears to be a bug on the Form Creator, setting the Radio buttons as required is ignored and has no required==1 value unlike the checkbox function.

Thanks as always from the UK  Smile

Chris
  Reply


Messages In This Thread
Form builder UserId/Username - by TheCj - 02-01-2019, 03:29 AM
RE: Form builder UserId/Username - by mudmin - 02-01-2019, 12:24 PM
RE: Form builder UserId/Username - by TheCj - 02-01-2019, 09:45 PM
RE: Form builder UserId/Username - by mudmin - 02-01-2019, 12:26 PM
RE: Form builder UserId/Username - by TheCj - 02-01-2019, 11:49 PM
RE: Form builder UserId/Username - by mudmin - 02-01-2019, 11:49 PM
RE: Form builder UserId/Username - by mudmin - 02-01-2019, 11:50 PM
RE: Form builder UserId/Username - by TheCj - 02-02-2019, 12:21 AM
RE: Form builder UserId/Username - by mudmin - 02-02-2019, 12:24 AM
RE: Form builder UserId/Username - by TheCj - 02-02-2019, 12:39 AM
RE: Form builder UserId/Username - by mudmin - 02-02-2019, 09:12 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)