I’m writing a landing page to test a business idea.
For testing purpose, I want to write a Credit card number field, to see if the customer is actually ready to buy the product.
As it is only a test, I don’t want this value to be submitted.
Actually for security purposes I don’t even want this value to be sent in the request.
Is a separate form enough?
<form> Sensitive info</form>
<form>Info I want
<input type="submit">
</form>
Yes, only the elements from the one
formwill be sent (whichever one was submitted).Alternatively, you could:
disabled(either from the start, oronsubmit)nameattribute of the inputformwith the same name (it will override the value of the first)