Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Please Assist: Restricting Access to a Web Page with a Form

Please Assist: Restricting Access to a Web Page with a Form
Thread Tools
Apple Pro Underwear
Addicted to MacNN
Join Date: Sep 2001
Location: NYC*Crooklyn
Status: Offline
Reply With Quote
Jun 17, 2008, 01:09 PM
 
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
     
Chuckit
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Jun 17, 2008, 01:16 PM
 
Have whatever script the form uses redirect to the PDF?
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Apple Pro Underwear  (op)
Addicted to MacNN
Join Date: Sep 2001
Location: NYC*Crooklyn
Status: Offline
Reply With Quote
Jun 17, 2008, 01:29 PM
 
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.
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Jun 17, 2008, 02:32 PM
 
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 Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 01:49 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,