I am trying to pass variables in the URL like this to fill a HTML and Liquid form and submit it once it's populated:
http://www.example.com/login?customer_email=admin@website.com&customer_password=123456
The closest thing I've found to what I'm trying to achieve is this question. I'm losing my marbles because I don't understand how the variables are put into the form.
Can someone please break it down / explain?
Here is the form code:
{% form 'customer_login' %}
<h1>Login</h1>
{% include 'form-errors-custom' %}
<label for="customer_email" class="hidden-label">Email Address</label>
<input type="email" value="" name="customer[email]" id="customer_email" placeholder="Email" {% if form.errors contains "email" %} class="error"{% endif %} autocorrect="off" autocapitalize="off" autofocus>
{% if form.password_needed %}
<label for="customer_password" class="hidden-label">Password</label>
<input type="password" value="" name="customer[password]" id="customer_password" placeholder="Password" {% if form.errors contains "password" %} class="error"{% endif %}>
<p>
<a href="#" onclick="showRecoverPasswordForm();return false;">Forgot your password?</a>
</p>
{% endif %}
<div class="text-center">
<p>
<input type="submit" class="btn" value="Sign In">
</p>
or <a href="{{ shop.url }}">Return to Store</a>
</div>
{% endform %}