PHP/MySQL - Apostrophe Issue When Submitting a Form
- or -
Post a project like this3164
$$$
- Posted:
- Proposals: 7
- Remote
- #853438
- Awarded
Responsive Website | | Flash | Logo Designing | Wordpress | Magento | PHP | MySql | ASP.net | MsSql | Jquery | Ajax | CSS | HTML5 | AWS
Mumbai
155769916212612493115205504068198041001469
Description
Experience Level: Expert
Estimated project duration: 1 day or less
General information for the website: Class Registration
Kind of development: Customization of existing website
Num. of web pages/modules: 1-2
Description of every page/module: The goal is to troubleshoot and fix the issue with customers that have an apostrophe in their name and be able to successfully submit their registration and PayPal payment.
Description of requirements/features: We have an online class registration form that creates a database entry error when the name of the person has an apostrophe in it. Code has been implemented as follows, but continues to not completely process the student's registration.
$sql .= "'" . mysql_real_escape_string($_POST['lastname']) . "',";
For example: The student enters:
First Name: John
Last Name: O'Brien
When the form is submitted, the student is required to pay the course fee. For some reason, the form is submitted, the student gets an acknowledgement that his registration has been submitted, payment is received, but the registration stays in a "pending" status. Since it's in a "pending" status, the students is not officially registered into the class. The problem only occurs with student's that have an apostrophe in their name.
I had a previous PHP/MySQL person troubleshoot this and said it was fixed, but the problem still exists. The custom, non-CMS, site was built a few years ago. The site is completely functional and has been running for many years. For some reason, the apostrophe issue came up about a year ago and was never fixed.
Specific technologies required: PHP/MySQL
Extra notes:
Kind of development: Customization of existing website
Num. of web pages/modules: 1-2
Description of every page/module: The goal is to troubleshoot and fix the issue with customers that have an apostrophe in their name and be able to successfully submit their registration and PayPal payment.
Description of requirements/features: We have an online class registration form that creates a database entry error when the name of the person has an apostrophe in it. Code has been implemented as follows, but continues to not completely process the student's registration.
$sql .= "'" . mysql_real_escape_string($_POST['lastname']) . "',";
For example: The student enters:
First Name: John
Last Name: O'Brien
When the form is submitted, the student is required to pay the course fee. For some reason, the form is submitted, the student gets an acknowledgement that his registration has been submitted, payment is received, but the registration stays in a "pending" status. Since it's in a "pending" status, the students is not officially registered into the class. The problem only occurs with student's that have an apostrophe in their name.
I had a previous PHP/MySQL person troubleshoot this and said it was fixed, but the problem still exists. The custom, non-CMS, site was built a few years ago. The site is completely functional and has been running for many years. For some reason, the apostrophe issue came up about a year ago and was never fixed.
Specific technologies required: PHP/MySQL
Extra notes:
Rich M.
100% (4)Projects Completed
4
Freelancers worked with
2
Projects awarded
50%
Last project
4 May 2019
United States
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies