I'm looking for a bit of guidance here, just need pointing in the right direction for. A solid solution.
Would this be possible with ExpressionEngine? Either using something like Low Search or even the Simple Search??
Step 1: Person enters: Surname, Postcode, Client reference number
Step 2: If those details match with the data in an entry(?), they then get put through to a confirmation page which is personalised with a unique code – this unique code will be already existing in the entry.
In step 1, the data inputted will need to match exactly so there is no risk of someone accidentally getting someone else's unique code. So blank spaces will need to be removed maybe??
Happy to take advice on a better way rather than entering x3 search fields.
Thanks
UPDATE
Here is the code I am using now.
Kind of works but I cannot get it to match exactly. For example searching for "Steve" or "Steven" in the first name field returns the same result. Where the actual name in the entry is "Steve". And then the client reference number returns the same result if "1234" or "12345" is enetered, where in the actual entry it is "1234".
Form:
{exp:low_search:form
result_page="/site/success"
collection="season_ticket_holder"
required="search:firstname|search:surname|search:clientref|search:postcode"
require_all="search:firstname|search:surname|search:clientref|search:postcode"
exact="search:firstname|search:surname|search:clientref|search:postcode"
}
<div class="form-area">
<p class="form-element">
<label for="firstname">First name<em>*</em></label>
<input type="text" name="search:firstname" id="firstname" class="txtbox">
</p>
<p class="form-element">
<label for="surname">Surname<em>*</em></label>
<input type="text" name="search:surname" id="surname" class="txtbox">
</p>
<p class="form-element">
<label for="clientref">Client Ref<em>*</em></label>
<input type="text" name="search:clientref" id="clientref" class="txtbox nowhite">
</p>
<p class="form-element">
<label for="postcode">Postcode<em>*</em></label>
<input type="text" name="search:postcode" id="postcode" class="txtbox">
</p>
</div>
<input type="submit" id="submit" class="submit" name="submit" value="Submit ›" />
{error_message}
{/exp:low_search:form}
Results page:
{exp:low_search:results
query="{segment_3}"
}
{title} {first_name} {surname} {client_ref} {postcode}
<h1>{discount}</h1>
{if no_results}No search results{/if}
{/exp:low_search:results}
Collection Settings:
FIX: problem solved, the issue was the search fields were not matching the custom field names. firstname = first_name. Thanks to Low for sorting that.