| @@ -6,7 +6,7 @@ Diligent web site | |||
| Pre requirements: | |||
| Pre-requirements: | |||
| * installed wamp server (https://sourceforge.net/projects/wampserver/) | |||
| @@ -83,21 +83,21 @@ For email sending, needed to make an instance of PHPMailer and use method *send* | |||
| $mail->send(); //send email``` | |||
| When 'resume-file' is sent using POST method, it can be found in FILES array, but other parameters can be found in POST array | |||
| When input (type file is used) in html form, need to add enctype="multipart/form-data" and setup: | |||
| When input (type file )is used in html form, needed to add enctype="multipart/form-data" and setup: | |||
| contentType: false, cache: false, processData:false, url: "myscript.PHP?call=upload" ('?call=upload' added after script name) in ajax submit | |||
| There are three the most important variables in header.php. They used for paths. | |||
| 1. backToRoot is used for back to the root folder where there are index.php, portfolio.php, etc. | |||
| 2. backToRootIndustries is used for navigation to the industries folder | |||
| 3. backToRootServices is used for navigation to the services folder. | |||
| styles/custom.css is a file which uses developers to add a new feature to the website, style.css is used for bug fixing in old style | |||
| For checking validation of file, needed to use (https://www.freeformatter.com/html-validator.html) | |||
| Every single page uses keywords (diligent, software, development, company, it, and specific words for that domain). It is located in meta (keywords) in the head of the document | |||
| In order to use google captcha in html form, needed to include ```<script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit" ></script>``` after including **custom.js** script, after that need to add one html element for captcha above the submit button. Define id for that element and custom attribute data-sitekey="site_key", where sitekey is google capctha key. After that at the end of custom.js file (before onloadCallback function) add new function for verification and call it in onloadCallback function | |||
| In order to use google captcha in html form, needed to include ```<script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit" ></script>``` after including **custom.js** script, after that needed to add one html element for captcha above the submit button. Define id for that element and custom attribute data-sitekey="site_key", where sitekey is google captcha key. After that at the end of custom.js file (before onloadCallback function) add new function for verification and call it in onloadCallback function | |||