oaktree8 Posted May 23, 2012 Share Posted May 23, 2012 I have a pretty basic form, it captures name and email and it stores the email in a input field dd_email. The form action is similar to below <form id="downloadform" name="form" class="cmxform" method="post" action="http://my.url.com/download-confirmation"> I want it to be like this but I can't get it to work: <form id="downloadform" name="form" class="cmxform" method="post" action="http://my.url.com/download-confirmation?utm_custom=$_POST['dd_mail']"> Is there a way to reference the email address submitted on the form as part of a UTM variable on the form action? If not how else can I do this so when it goes to the download-confirmation page it has that utm string? thanks Quote Link to comment https://forums.phpfreaks.com/topic/263002-newbie-question-on-form-submission/ Share on other sites More sharing options...
scootstah Posted May 23, 2012 Share Posted May 23, 2012 You could use a GET action to put the form contents into the URL. Or, after processing the POST request you could redirect to the page with the email in the URL. Or, you could forget about the URL and simply process the POST request. Quote Link to comment https://forums.phpfreaks.com/topic/263002-newbie-question-on-form-submission/#findComment-1348012 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.