SportsGalore Posted April 15, 2016 Share Posted April 15, 2016 When a product is purchased for a membership duration i then have to manually login to another URL and add the details manually as per below to add the client. what I want to do is fully automate this after I manually activate the purchased product in WMCMS, so when i activate their product, it auto signs/sends info into the other site where the form page is located (i don't mind including my site login inside php etc) Then I just want to use the clients WHMCS email as the passed $username the clients WHMCS password as the passed $password If they purchased a 1 month product (pid=1), when it activates it looks to select form option value 16 If they purchased a 3 month product (pid=2), when it activates it looks for form option value 17 If they purchased a 6 month product (pid=3), when it activates it looks for form option value 18 If they purchased a 12 month product pid=8, when it activates it looks for form option value 19 in textarea name= I would like the full name of the client sent to that value then i want it to somehow submit to add the client to that page form & exit/disconnect Can someone tell me if this is possible? I don't have any coding skills lol but I hear hooks can do amazing things, if this can be done please can you tell me ? and what I would have to look at doing ? any info or thoughts appreciated from the hook guru's Cheers <form method="post" action="add_user.php?action=add_user"> <div class="module_content"> <fieldset> <legend><b>Provide User Details</b></legend> <table id="settings"> <tr> <td>Username</td> <td> <input type="text" name="username" placeholder="the email of the client ?" /> </td> <tr> <td>Password</td> <td><input type="text" name="password" placeholder="the password of the client?" /></td> </tr> <tr> <td>Select duration to assign</td> <td> <select name="package_id" id="package_id" required> <option value="">--</option> <option value="16">1 month</option> <option value="17">3 Months</option> <option value="18">6 months</option> <option value="19">12 months</option> </select> </td> </tr> <tr id="contains_row" style="display: none;"> <td>Package contains</td> <td> <select id="package_contains" style="height: 200px;" multiple disabled> </select> </td> </tr> <tr id="line_type_row" style="display: none;"> <td>Select account Type</td> <td> <select name="line_type" id="line_type" required> </select> </td> </tr> <tr> <td>Notes</td> <td><textarea name="notes about client, address maybe"></textarea></td> </tr> </table> </fieldset> </div> <footer> <div class="submit_link"> <input type="submit" value="Create New account" class="alt_btn"> </div> </footer> </form> 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.