Jump to content

Recommended Posts

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

 

Link to comment
https://forums.phpfreaks.com/topic/263002-newbie-question-on-form-submission/
Share on other sites

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.