I'm not really up to scratch on Microsites and updating DEs off the back of them.
What I am trying to achieve:
A microsite that subscribers can access from links on our emails.
The microsite will be passed their subscriber key, and update a series of check-boxes based on a lookup of that subscriber key in a data extension (Boolean value for checked/unchecked).
The boxes can be changed however the person wishes, and they can click submit, and the relating Boolean values will be updated in the DE for that subscriber.
If the subscriber key is not yet in the DE, all checkboxes to be unticked. When they click submit, the subscriber key would be written to the DE with the relevant Boolean values.
Thus far I have built the DE, and have looked at using the upsertdata function to add/update the data, but I can't figure out how to set the checkbox values based on a lookup within that DE.
<html>
<form id="myForm" method="post" action="handle form url">
<input type="hidden" name="CNSMR_ID" value="%%=v(@CNSMR_ID)=%%" />
<Strong>Which destinations are you interested in for a future cruise?</strong><br />
<input type="checkbox" name="Destination" value="Europe North" />Northern Europe<br />
<input type="checkbox" name="Destination" value="Europe Med" />The Mediterranean <br />
<input type="checkbox" name="Destination" value="Caribbean" />The Caribbean<br />
<input type="checkbox" name="Destination" value="Alaska" />Alaska<br />
<input type="checkbox" name="Destination" value="Arabian" />The Arabian Coast<br />
<input type="checkbox" name="Destination" value="Far East" />The Far East<br />
<input type="checkbox" name="Destination" value="Australia" />Australia & New Zealand<br />
<input type="checkbox" name="Destination" value="Galapagos" />The Galapagos Islands<br /><br />
<input type="submit" />
</form>
</html>