/    Sign up×
Community /Pin to ProfileBookmark

Form that emails certain attachment

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

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@sitehatcheryNov 09.2006 — 
  • 1. When the user signs up, their information is inserted into the database.

  • 2. Processing & validations -> thank you/error screen

  • 3. Notification sent to user email that their request will be reviewed

  • 4. Notification sent to admin email to review

  • 5. By default, user goes into pending status

  • 6. Admin reviews the registrant (in admin console) and you take it out of pending status if accepted or in rejected status.

  • 7. Notification sent to new member's / rejected registrant's email

  • 8. Once in accepted status, they can log in and download the files they need.

  • 9. Certain options are only available to those logged in.


  • This is one way I'd look at doing this. Just work thorugh each step. There are a lot of bits to this program. Sometimes it helps to look for and code each of the smaller pieces.

    For instance, it seems that what you need to get started is:

    a. An HTML form

    b. Code which processes and validates the form data

    c. Code which, upon successful validation, moves the data to a database.

    d. Code which, upon successful validation, sends an email to the user.

    e. A thank you/error page.

    Where are you at in this process?
    Copy linkTweet thisAlerts:
    @3x-a-D3-u5authorNov 10.2006 — Thanks for the reply,

    Well i was going to take the sign up form from the home screen, that way it automatically creates a user etc.

    the send mail() thing i have done before, the problem is how do i put the two together?

    i have also made a thank you page in html.

    basically its just the combining of the two steps. Howto??

    regards 3x
    Copy linkTweet thisAlerts:
    @3x-a-D3-u5authorNov 12.2006 — any one else got some help?
    ×

    Success!

    Help @3x-a-D3-u5 spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.21,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...