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.142 seconds

Real time saver and great Component Builder tool ! I have been developing with J-Cook Pro Component Builder for several months now and can say with all honesty that this product/service is second to none. The product is feature rich and is being improved and added to all the time. Do yourself a favor if you need to build a Joomla! Component then you can do no wrong in trying the product. You will save on time and effort while being able to deliver your project on time. J-Cook pro does the hard work for you you then have the freedom to fully customise the end result for your own needs. 

One word: Awesome.
Edwardcox (JED)
         

Get Started