Announcement

Collapse
No announcement yet.

sendmail

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    sendmail

    Hi,

    Does anyone know if its possible to either mod the standard sendmail or replace it so that instead of a new page opening when you click send on a form, it returns a true/false so that you can use javascript to change the current page?

    e.g. you fill your form in and click send. if return false then java shows error text or true, it changes the send to a thanks!

    Thanks,
    paul.

    #2
    well, first of all, i'd use some ajax to make this happen. use a http post request to send your data in the background.

    the response triggers the java event that changes the button.

    however, i must point out that this leaves your page open for multiple depressions of the button. unless your script also disables its use, people could hammer it all day and spam your server to bits.

    Comment


      #3
      thanks! I'll give it a go (and disable that button!)

      Paul.

      Comment

      Working...
      X