Link to home
Start Free TrialLog in
Avatar of MrTV
MrTVFlag for Thailand

asked on

when user click confirm in the code below send email

when user click confirm how can I make code send email to info@samui.com
but it still send variable to https://nsips.scb.co.th/NsipsMessageAction.do




 <td height="565" colspan="5" valign="top"><form method="post" action="https://nsips.scb.co.th/NsipsMessageAction.do"  >
                                <table height="522" border="0">
                                  <tr>
                                    <td width="150"><span class="style33">Amount Baht </span></td>
                                    <td width="303"><span class="style31"><?php echo "<span style='color: red;'>".$_POST['amount']."</span>" ?></span></td>
                                  </tr>
                                 
                                  <input type="hidden" name="cust_address1" value="<? echo $_POST['cust_address1']; ?>" />
                                  <input type="hidden" name="cust_city" value="<? echo  $_POST['cust_city']; ?>" />
                                  <input type="hidden" name="cust_province" value="<? echo $_POST['cust_province'] ?>" />
                                  <input type="hidden" name="cust_zip" value="<? echo $_POST['cust_zip']; ?>" />
                                  <input type="hidden" name="backURL" value="http://www.kohsamuiresort.com/scripts/resultpayment_old.php" />
                                  <tr>
                                    <td><input name="submit" type="submit" class="navText" value="Confirm" />
                                        <input name="button" type="button" class="navText" onclick="history.back()" value="Cancel" />                                    </td>
                                  </tr>
                                </table>
                            </form>

Open in new window

Avatar of Beverley Portlock
Beverley Portlock
Flag of United Kingdom of Great Britain and Northern Ireland image

You say "...it still send variable to https://nsips.scb.co.th/NsipsMessageAction.do" - is that a different script from this one shown above?
Assuming NsipsMessageAction.do is a script, you could amend this script to send the e-mail as well as performing it's current function.

You could also use AJAX to perform the send e-mail.  I.e. change the onsubmit button to call an external script via AJAX and then submit the form as normal.
Avatar of MrTV

ASKER

Hi experts

i change  https://nsips.scb.co.th/NsipsMessageAction.do"   a lit tle bit for security my mistake I did not change all


How can I use a jax to perform send email
SOLUTION
Avatar of Beverley Portlock
Beverley Portlock
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial