PHP Form, ajax and token question







Hello,

I am, for the first time adding a token to my php form(using also https), but I have a problem.

Here is my workflow and where the problem happens:

1)Form shows up in html and a token is generated via php and placed into an hidden field.

2)The form data is sent via ajax and processed via an external php script that sends back a success or error.

While this is happening the token is also kept in a session.

3)When an error happens in the form, the ajax…

Read the entire article at the source link…


#codango #developer #development #coder #coding

We're happy to share this resource that we found. The content displayed on this page is property of it's original author and/or their organization.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*