Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

  • aswi
  • aswi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 7
  • Thank you received: 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

Please Log in or Create an account to join the conversation.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

Please Log in or Create an account to join the conversation.

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

  • aswi
  • aswi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 7
  • Thank you received: 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?

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.056 seconds

I must say that I'm leaps and bounds ahead of where I would have other been with J2.5 with full thanks to the folks on this forum and specifically to Cook so you'll never hear me complaining.
gdpodesta (Forum)  

Get Started