I have several landing pages and the only difference in them is a hidden input’s (referred_by_text) value. I would like to just make one form and include it in all the landing pages….how would I go about setting the value for the input on each landing page for that value?
In the landing page this:
<?php include("includes/lp_form.php");?>
In the included form:
<input type="hidden" name="referred_by_text" value="" />
I would like to set the value for “referred_by_text” in each landing page…not sure where to start, any help is much appreciated. Would it be best to do it as an variable or possibly in JS?
Alter “includes/lp_form.php” to expect a variable for the “referred_by_text” value:
Then set the value in your page-specific script before including “includes/lp_form.php”