Welcome, Guest
Username: Password: Remember me

TOPIC: Hidden field in page item form

Hidden field in page item form 05 Aug 2013 18:12 #10688

  • aswi
  • aswi's Avatar
  • Offline
  • New Member
  • Posts: 7
  • Karma: 0
Hi, i need to put an hidden field with username parameter into page item form, when i try to pass the paramenter by joomla user field it show me a combo select where i can choose which username i've to add, but i want to do it automatically by username i logged in.

Hope someone can help me

Regards
The administrator has disabled public write access.

Hidden field in page item form 05 Aug 2013 18:29 #10689

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
This is not safe at all !!!
Are you sure to do that ?
An hidden field can be modified by anybody. So it can be corrupted.

The best way is to get the user id directly at the place where the information will be treated.
Coding is now a piece of cake
The administrator has disabled public write access.

Hidden field in page item form 07 Aug 2013 14:24 #10705

  • aswi
  • aswi's Avatar
  • Offline
  • New Member
  • Posts: 7
  • Karma: 0
I've many different tables with a join on a field called city, each user can manage only one city, and the city parameter is filled into user registration form. All the other tables the user fill need to be completed with the city parameter, and that parameter is always the same, i just want to add it automatically in the form of the others table.

ex. TABLE USERNAME : Field Username , Password, City

table 1 : field {HISTORICALPLACENAME, DESCRIPTION, IMAGE, CITY(always the same, it depend by user who menage that city)}
table 2: field{HOTELNAME, DESCRIPTION, IMAGE, CITY}
.
.
.
.
all the table are related by CITY field, so i thought to put an hidden field inside each table with CITY parameter of user who manage it.

Can you help me?
The administrator has disabled public write access.
Time to create page: 0.088 seconds

Get Started