简体   繁体   中英

Get form value from URL variable opencart admin login

I'm trying to achieve this, When I pass a variable in admin url login page like this

admin/index.php?route=common/login?email=test@test.com

The url value "email" gets in the username input field

I'm using opencart 3 and I changed the login to be with email instead of user name

You can pass variables in the URL using the below format.

base_url or domain ? variable_1=value_1&variable_2=value_2.........&variable_n=value_n You can access the value of each variable $_GET['variable_1'],$_GET['variable_2']....$_GET['variable_n']. if you are using email input field in form tag method should be GET enter image description here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM