Hey I want to prefill in new user
details by setting the parameters in a link.
I am talking about the default Joomla User Manager in the BACKEND and then clicked on new user.
So this link,
administrator/index.php?option=com_users&view=user&layout=edit&id=0&jform_username=test
would already prefill in the username field with the word test
.
I tried numerous suggestions from the web to make this work but sadly no luck. I also tried with different fields and switching between the name of the field and the ID jform[username] or jform_username
.
$_GET
parameters (data visible in the url's query string) are to be used when performing READ-type operations on the server-side. When performing CREATE, UPDATE, DELETE operations, it is best practice to pass data via$_POST
. One reason for this is that if a bot/hacker becomes aware of your links, they can mangle your users table in mere seconds via automated pageloading scripts. Whether or not this is a credible scenario for your project is not my point. It is a professional practice to split submitted data to CRUD operations in the way that I have described.