Jump to content

Photo

Handling simple HTTPS POST form submits on static sites?

- - - - -

  • Please log in to reply
1 reply to this topic

#1
gushort

gushort
  • Members
  • 527 posts
  • Joined: 05-January 11
  • LocationToronto

I've started using Surge.sh to quickly publish one page websites with a simple one email field form (action='https://signup.web.site'method='POST'), and I was just wondering how I can handle the POST response code returned, without resorting to using Ajax. I just want to let the user know whether their form submit was accepted, or not.

 

Thanks



#2
gushort

gushort
  • Members
  • 527 posts
  • Joined: 05-January 11
  • LocationToronto

Never mind, too much clutter in my brain today. Just have server use a redirect to success/failure page or same page with anchor (#ok/#fail) in address that script can act upon.






2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users