|
|
Please Assist: Restricting Access to a Web Page with a Form
|
|
|
|
Addicted to MacNN
Join Date: Sep 2001
Location: NYC*Crooklyn
Status:
Offline
|
|
Hi guys,
My company is trying to make a online web form where somebody fills in the form and they get access to a free PDF file.
How do I go about making this happen? Is there a simple way I can make this happen?
- We are using a host with no Content Manager running (like Drupal or etc)
- We have Wordpress installed for a blog
- Hosted by GoDaddy
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
Have whatever script the form uses redirect to the PDF?
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
|
|
|
|
|
|
|
Addicted to MacNN
Join Date: Sep 2001
Location: NYC*Crooklyn
Status:
Offline
|
|
I do mostly front-end stuff...
can you please point me to a tutorial?
- The one thing I don't want is for the PDF to be accessible through it's own url. Then people will bypass the form.
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
Create a PHP file that authorizes your form output, and redirects to the PDF via a:
[codex]<?php header ("Location: yourpdf.pdf"); ?>[/codex]
You'll need to update your php.ini to allow for header rewriting, if this isn't already set for you.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|