Hi guys,
Have been searching the posts all nght. Great resource!!! Still though need a lil help. I’ve got a members area, but to download certain files you must be a) signed up and b) signed in. I can hide the links to the downloads if they’re not a member, but how can i get non members to sign up?
To urb this problem iv worded it “Fill this in and we’ll mail you the documentation…” whereby filling in the form acts as a sign-up form and they’re now on my data base.
Here’s a basic algorithm
1 member yes goto <end>
2 no – fill in form with email
3 create user in database using email addy (for this i can simply copy the origanal sign up form)
4 email requested files to new user (using mailto())
5 send thank you email in html to new user (using mailto())
<end> display links for download
can i use this $mail->AddAttachment(“/tmp/image.jpg”, “new.jpg”); ?
Could i also use an if statment instead of 10 different sendmail forms just 1 quring which file to download and which thank you letter to send..?
Some more clarification:
{check_member}
Download links HERE
{/check_member}
{check_guest}
User sign-up form
{/check_guest}
Thanks guys for any input ?
Regards 3x