Site Name: Promotii Mars
URL: www.promotiimars.ro
Platform: WordPress
This portfolio is outdated. Please view my updated work by clicking the "New Website" button.
Details:
Website make in WordPress for contests and promotions. Most of the contests are created in a custom PHP form. The design of the form and its functionalities are created based on PSD images with the contest. Few pages from menu have JS and CSS animation for user interaction with items. Main plugins used for creating the forms for competitions in this website are Elementor and PHP Everywhere. Over 20 of different forms I had created here with different design and in some cases with different functions.
Single Form Page made with PHP, HTML, CSS, JavaScript and SQL. The PHP code works in this way: You get the data from form and at the submit button it will create a database if it doesn't exist, will verify the data, all check boxes must be checked, the input fields must be non empty, one radio box must be checked, the code from invoice with the phone number must be unique and used only once in the database (in this example), the data submit must be within the set data range (begin date - end date) and the file upload must be an image in JPG, PNG or GIF format with maximum size of 40 Mb. If the conditions are met, the image file will be compressed and saved in a folder with the name of SQL table name in 'wp-content', the data will be saved in a SQL table from data base with a URL for image, and in the final, the page will reload and instead of the form content will show a specific banner for success status. If the conditions are not met, a specific error message will be displayed below each field, and if the invoice code was previously used in the database, a pop-up message with a specific error message will be displayed or a banner will be displayed. If the campaign has started, the submit button from the form will not appear or a banner will appear instead of the form, if the campaign is over, a banner will appear instead of the form.
This project have a orm with 2 data bases, first one to save and check the participants in the competition, and the other one contains the shops data from where the participants can register. Shops data have shop name, shop address, shop city and the shop county. This data base is send with PHP in JSON format in a JavaScript variable, and every change from a select have functions, so that its options are not duplicated and are related to the option chosen from the previous selection. Also, the use of selections is only possible consecutively, row by row, from the first selection to the last.
The site has a page that displays a table from an EXCEL with a module. The design of the table has been modified according to a representative image. the table has a field where you can search for a value in the table.
An example of form made with PHP, JS, CSS, HTML and modules: Elementor, PHP Everywhere. All data from form is save in a new table in a specific database. The custom code will automatic create the new table, and automatic will create a folder where all images will be saved. The form is only public for a specific period of time. If the current date is not in the time range, the form may display a banner or the submit button will not be displayed. The website have many forms in this type designed from JPG and PSD images received from customers.