complete php order form with discount code check

Budget $30 - $250 USD
Bids 22
Average Bid $81

This is our initial position:
- there are two simple php files: php1 for an orderform, php2 for checking and confirmation
- php1 is an order form, where the customer can put in his address before ordering.
- there is also a field for "discount code". If the customer has a discount code, he can put it herein to get a discount.
- with a submit button, the php2 is called.

- php2 checks address data for completness.
- check is done with simple "if" queries
- if the address is incomplete, it goes back to order form
- if the address is ok, order will be sent
- discount code is checked manually

-----------------------------------------------------------
This is what we need:
- php3: discount code validation and mark discount code as obsolete
- at submitting the discount code must be validated
- additional we provide a "[url removed, login to view]" file, wich is edited manually.
- this is an example of [url removed, login to view]:
12345678901234;[url removed, login to view];[url removed, login to view]
12374278901233;[url removed, login to view];[url removed, login to view]
82345678421230;[url removed, login to view];
55345685671236;[url removed, login to view];

- [url removed, login to view]:
-- format is text/csv
-- seperator is semicolon ;
-- there is no header line
-- each line is one discount code
-- three fields: fields one/two are predefined, field three is controlled by php3
-- first field is the discount code, alphanumeric, up to 20 charcaters, no spaces
-- second field:expiry date; date format: [url removed, login to view]
-- third field: date of cashing the discount; date format: [url removed, login to view]

- validating with php3:
-- validating must be processed in a separate php3 file. php2 calls the new php3 as a function. php3 returns only true/false (valid/not valid).
-- so the only change in php2 is the new function call to php3 and if the check fail and additional error message.
-- new php3 function:
--- get the customer discount code from php2 as parameter
--- read each line in the csv file and compare with predefined discount codes with our customer discount code until it finds an exact match
--- discount code is only valid if:
---- predefined discount code matches complete with customer discount code (not case sensitive)
---- predefined discount code has same length than customer discount code
---- current date is less or equal than "expiry date" (second field in line)
---- third field in line (discount code) is empty

--- if the discount code is valid:
---- change [url removed, login to view]: php3 write current date in the line with the matched discount code as third field. This mark the discount code as obsolete
---- date format: [url removed, login to view]
---- return true to the calling program as valid discount code and end php3

- leave php1 unchanged
- complete php2:
-- this should the call in php2 look like i.e.:
--- if (php3($discountcode))
--- {
--- // current code for ordering; leave unchanged
--- }
--- else {
--- // new code: error message "discount code invalid"
--- }

Post a Project Like This

This project was awarded to

dzmitrij

Dzmitrij is a great developer, he knows what he is doing. Great communication, very good english, always available on Skype. Dzmitrij provided an excellent project and was willing to add features and listen to additionnal requests without trouble. He is very proactive and asks the good questions, showing that he understands requirements and problematics very well.
About the Freelancer
dzmitrij Profile Picture

## BIO Hello! My name is Dima. My job is Database & Network administrator. I have experience in PHP, MySQL, Oracle, Delphi ## Area of Expertise Databases: Oracle, Interbase, MySql Languages: Delphi 7, Delphi 2007 Web: HTML , CSS , JavaScript , PHP , CMS Joomla , DreamViewer MX 2004

Looking to make some money?

  • Set your budget and the time frame
  • Outline your proposal
  • Get paid for your work

Bids on this Project

  • gopalvora Profile Picture

    gopalvora

    Jetpur,  India

    I have 7 + year exp. in Php , joomla , MySQL, word-press , OsCommerce , cake php, Prestashop, Smarty Php , Javascript , CSS, HTML5, jQuery i do in innovative way that make our application stable in fast changing client requirements. i help organization from planning stage to implementation stage thus our services make backbone of their success.

    PHP, XML, Website Design, and Graphic Design

  • kssoftphp Profile Picture

    kssoftphp

    Indore,  India

    8+ years of experience of Website Development in PHP, HTML, CSS, WordPress, WooCommerce , MySQL , AJAX, API, Web Services, JSON, CodeIgniter, Yii, Zend Framework, OpenCart, Magento, OsCommerce etc

    PHP, Javascript, Script Install, and Website Design

  • linuxfreak1985 Profile Picture

    linuxfreak1985

    Karachi,  Pakistan

    Maximum Expertise with Minimum Cost | Perfect Job! Greetings! LinuxFreakz is the top freelancer based in Karachi, I have been serving Website Design / Development / Android and Server Administration jobs for past 6 years. My Expertise: 1. Wordpress Themes / Plugins Coder 2. Responsive Website Design / Bootstrap / HTML5/ CSS3 3. Woocommerce plugins / Websites 4. Android / Mobile Phone 5. Ecommerce Solutions 6. Linux Server Administration 7. INTERSPIRE / MAILWIZZ / POWERMTA 8. Email Delivery Consultant Terms of Service • 100% Customer Satisfaction • Perfect 5 star reviews!! • Good communication availability 24/7

    PHP, Java, Javascript, and Website Design

  • kutchbhi Profile Picture

    kutchbhi

    ahmedabad,  India

    Expert computer and internet user with vast experience in using various desktop and internet applications and tools. Typing speed : 60 HTML/CSS : familiar with both HTML/CSS Exposure to programming lanugages like php/ java/ C#

    PHP, .NET, Windows Desktop, and Data Processing

  • vios Profile Picture

    vios

    Brisbane,  Australia

    PHP, C Programming, Javascript, and Visual Basic

  • ashokjalondhara Profile Picture

    ashokjalondhara

    surat.,  India

    SKILL: php, mysql, css, html, javascript, ajax, jquery, codeigniter expe: 2 year

    PHP, XML, Website Design, and Logo Design

  • twr1965 Profile Picture

    twr1965

    Middlewich,  United Kingdom

    I am a freelance website developer from England; I work extensively in php and Mysql for backend and dynamic content and xhtml with css for on page code. I also have experience in Ajax/JavaScript used sparingly and for the correct uses can enhance a website. But used in the wrong context can seriously harm a site; search engines are not that good at indexing JavaScript content. I always make my code as browser friendly as possible and test on ie6, ie7, ie8, Firefox, Chrome, Opera. Once the site works in Firefox it will normally do the same in the other browsers apart from Internet Explorer that is, version 8 does seem to be the exception to this. I give a three month warranty on any code I do this means that if any problems occur that are connected with my code I will fix A,S,A,P for no extra charge. This time period is long enough to find any bugs that may be in the code, this is only for my code and not existing code. I am also proficient in Photoshop and use it for all my image production and manipulation this includes image slicing for page layouts. I always work to the highest of Professional standards and will always deliver on time.

    PHP, Javascript, Website Design, and Photography

  • tpetrov92 Profile Picture

    tpetrov92

    Kardzhali,  Bulgaria

    I'm IT specialist interested in future technologies of Global World Wide Web.

    PHP, Javascript, Excel, and PDF

  • csajit Profile Picture

    csajit

    Bangalore,  India

    PHP Programmer with 8+ years of experience in Web/Portal Development. Very Professional...Ready to extend my full support.

    PHP, Javascript, Graphic Design, and Linux

  • LogikaKita Profile Picture

    LogikaKita

    Jakarta,  Indonesia

    I am a web and desktop application developer. My aims are to overcome your problems, to make your works easier, and to give you solutions. I am open for any discussions. The service areas that I offer : - Web Programming, which is using the following technologies : -- HTML -- PHP -- JavaScript -- MySQL -- J2SE, J2EE (EJB) -- ISO 8583

    PHP, Java, JSP, and Javascript