Fill Out Info Form Before Download

I’d like to set up a situation where before someone downloads a certain file, they have to fill out a contact or information form first.

I’ve seen the PHP Feedback Action and the PHP Form Actions. Can I use either of these? And, I’m not sure what the difference is between the two.

Thanks…


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Robert,
Just set either up to load a page that has the download link on when they send the form ‘an altered version of the thanks page’. This will not stop people from using the same address if they wanted to go back to it but if what they are downloading is nothing special then will that be a problem? You will get an email when they fill in the form of course.

Just thinking, the following might work by checking if the page was loaded by coming from your site… which would happen if coming from the form on your site. You would need to place the following code in the Before of the page that has the links (the thanks page in this case). You would need to replace the ‘yourdomain.com’ with your domain and the ‘./index.html’ with the path and/or page the user would be sent to if they had just loaded the address in their browser. This is not the be all and end all of stopping access to the page byt it might be OK for what you need.

BTW, you will need to make the success/thanks page end in .php if you add the following code to it.

<?php
if (preg_match("/yourdomain.com/i",$_SERVER['HTTP_REFERER'])) {
	// All is probably OK as the user came from the site so do nothing here.
} else {
	header ('Location: ./index.html'); // The user didn't come from your site so send them to another page
	exit;
}
?>

HTH

Mike


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks. A little “Greek to me”, but I’ll see if I can try it out.

Do I use one of the above mentioned PHP form actions for this as well?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sometime around 8/2/09 (at 11:24 -0500) Mike B said:

Just set either up to load a page that has the download link on when
they send the form ‘an altered version of the thanks page’. This
will not stop people from using the same address if they wanted to
go back to it

Mike mentions a fairly good way to filter out those trying to jump
straight to the download page, but you could perhaps also make that
thanks/download page a form processor itself; send a hidden field to
it from the submitting page, and only show the download link if that
data is supplied.

k


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Well if you where using the PHP easiForm Actions then you make a page that has the download links on it, change the page ending from .html to .php then add the code I posted to the ‘Before ’ of the page. The only thing with this is the thanks page will not load until you have a license for the action but then you could make sure it all works and then if you where happy the only thing you wouldn’t see is the thanks page until a license was purchased.

I guess the PHP Feedback action would also if you where using that but I haven’t used it myself, or at least not for a very long time so I am not exactly sure if the set up would be the same but I would guess so.

Mike


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options