Hi guys, I'm an affiliate and as you now I need to track everything that visitors do on my wesbite. I'm in the "public records" market and on one of my landing page I have got a form. Once visitors, caming from adwords, fill out this form with "name" and "last name" of the person they are searching for, they are redirected to the publisher site where appears the results of their search. I'm not sure if it's clear so I'll make an example: one visitor searching for "public records" clicks on my ads on adwords he lands on my landing page where he finds a form he fill out this form with the "name" and "Last Name" of the records he is searching for. he then land on the publisher site and see all the results of his search. Now I need to put a page on my domain that first get all the data from the form filled out by user (so it should get "name" and "last name" of the person that user is searching for), and then that page should submit all this data to the publisher website. So, once visitors fill out the form on my landing page, they land on a new page, always hosted in my domain, that submits all this data to the publisher website. I need this new page because I'm going to use google website optimizer to test the better performing landing page and I need to have the conversion page on my own domain as only this way I can put an analytic code and so I can track the conversions. I was thinking to use a metarefresh redirect that takes all the data from the form and redirects user to the publisher results page. This way I can put the analytics tag on that metarefresh page and I will be able to track conversions. The problem is that I don't know PHP and I don't know how to make a metarefresh that takes all the data from the form. I was wonderin if anyone could help me, I hope to have been clear. Thank you
How do you pass the information to the publisher? I'm also a little confused about what "name" and "last name" are. Anyway, to get the information from a form...(If I'm understanding correctly) <?php // has the form been submitted? if(isset($_POST['search'])) { // are both values set? // if they are, do the redirection, otherwise, go back to the form. if($_POST['name'] && $_POST['lastname']) { $name = $_POST['name']; $lastname = $_POST['lastname']; // now you'll do whatever redirection } else { // the form, with some errors about the inputs } } ?> <form method="POST"> <p>Name <input type="text" name="name" /></p> <p>Last Name <input type="text" name="lastname" /></p> <p><input type="submit" name="search" value="Search" /></p> </form> PHP:
Hi Altari, Thank you for your reply. However, I wasn't able to make it works. "name" and "last name" are some fields of the form that users need to fill out. How do I pass info to the publisher? This it the form code, I hope it will answer to your question: Then there is that code for every field: I try to explain better my situation: I have a landing page with a form. When a user land on this page he fills out this form. What I need is a page that get all the info that this user put into my landing page form and send all these info to the publisher site. Is it more clear? If not, ask again, I will try to use different words to express it. Thank you a lot
No, it's clear, and that form that you posted helped clear things up a bit. That's not the whole form, though. Is the rest of it the boxes that the user actually fills in?