Jump to content

Referral form embedded in our affiliates .tpl


neelix71

Recommended Posts

Hi Guys,

I have been trying to add a "friend referral" form into the "affiliates.tpl" and need it to be able to send emails (comma separated emails) to our clients friends, 10 max at a time.

I have added the form but can't get the "Emails (Comma Separated)" field or the submit button to work, also once the client has submitted the form it needs to redirecting to a thank you page. Please have a look at the attachment to see what we would like.

The only thing that needs to link to whmcs admin is the affiliate link, which is already done,

it's just the action for comma separated emails and redirection after submit that we need to get working, can anyone help us complete this?

Link to comment
Share on other sites

Sorry guys, I can't seem to upload an attachment, hope the following helps explain what I am trying to do.

 

Email to friends (comma sepatated) form embedded in affiliates.tpl

 

1. How can we link a email form to a .php action within the affiliates.tpl template or is there a better way?

2. Can someone write the .php action code to complete the process or help us complete this?

3. Once the sumbit button is actoned email is to be sent to up to 10 friends at a time and returning the client to a thank you page.

 

I appreciate any help in advance.

 

Here is my form:

 

<form action="??" method="post" name="referralform" id="referralform">

 

<fieldset class="control-group">

 

<div class="row">

<div class="control-group">

<label for="subject" class="control-label bold">Emails (Comma Separated) - max 10 at a time, every 15 minutes</label>

<div class="controls">

<input type="text" style="width:100%;" value="" id="emails" name="emails" class="input-xlarge required">

</div>

</div>

</div>

<div class="row">

<div class="control-group">

<label for="subject" class="control-label bold">Subject</label>

<div class="controls">

<input type="text" style="width:100%;" id="subject" name="subject" class="input-xlarge required" value="{$clientsdetails.firstname} {$clientsdetails.lastname} has invited you to join!">

</div>

</div>

</div>

<div class="row">

<div class="control-group">

<label for="message" class="control-label bold">Message</label>

<div class="controls">

<textarea rows="12" id="message" name="message" style="width:100%;" class="required">Hey,

 

(Email text)

 

by signing up using this link:

{$referrallink}

 

Regards,

{$clientsdetails.firstname} {$clientsdetails.lastname}

</textarea>

</div>

</div>

</div>

 

</fieldset>

 

<div style="text-align:center;" class="form-actions">

<input type="submit" value="Send" name="save" class="btn btn-default-dark btn-plan">

</div>

 

</form>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated