The following string contains the serialize data of a form. I want to include session_id() in the same string, so how can I include something like session_id=session_id(); in it? Thanks.
string = '&' + $('#new_form').serialize();
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Inside your form tag u can add hidden input element.
Now your jquery will automatically add the session_id
I hope this will help 🙂