I'm creating a custom profile center using landing pages and ampscript.
When I submit my form to itself the data is properly processed with ampscript. But the "qs" parameter is no longer available in the URL and therefore I have no means of returning the subscriber to a personalized page. I tried doing a RequestParameter("qs") and QUERYPARAMETER("qs") to retrieve the value and pass it on to the submission page but I seem to be unable to capture that value.
Is there a better way to pass or retrieve this value after submitting a form?
Thanks,
Best Answer
Just exclude the
action
parameter of the<form>
altogether. When no action is present browsers will submit to the current documents address.This will leave your QS parameter as it was when the Subscriber first hit the page; so if you use
MicrositeURL
AMPscript function with additional parameters, it'll always be passed.