Search found 31 matches

by guvna
Tue Mar 12, 2019 10:52 am
Forum: PHP coding => General
Topic: form validation using form from include () file
Replies: 15
Views: 1688

Re: form validation using form from include () file

OK so in response to 'hyper' suggestion I've tried a few things. in public_html/frm frm-pm.php now shows as: $root=$_SERVER['DOCUMENT_ROOT']; include "$root/retail/pm_form.php"; in public_html/retail pm_form.php I've no idea why it works but would be nice to get an understanding. All works with the ...
by guvna
Tue Mar 12, 2019 4:07 am
Forum: PHP coding => General
Topic: form validation using form from include () file
Replies: 15
Views: 1688

form validation using form from include () file

I've been researching looking into form method and post but can't seem to get round this one. Whilst this is a good example: https://www.w3schools.com/php/php_form_complete.asp The form is self contained. My situation is twofold but I'll deal with the validation while using an include file first. My...
by guvna
Tue Mar 14, 2017 10:23 am
Forum: PHP coding => General
Topic: includes in sub directories of password protected directories
Replies: 7
Views: 2229

Re: includes in sub directories of password protected directories

response to chorn post:
Is your warning relative to the using of http full path in includes, to using server path, or both?
by guvna
Tue Mar 14, 2017 4:35 am
Forum: PHP coding => General
Topic: includes in sub directories of password protected directories
Replies: 7
Views: 2229

Re: includes in sub directories of password protected directories

ok thanks. This works but only with server path, not with site path. So this leads to another issue, I use Dreamweaver for websites and with site paths any changes I make will automatically update affected pages. The server path include paths are not automatically updated by Dreamweaver. I'm thinkin...
by guvna
Fri Mar 10, 2017 9:41 am
Forum: PHP coding => General
Topic: includes in sub directories of password protected directories
Replies: 7
Views: 2229

Re: includes in sub directories of password protected directories

Have tried that and still get the authorization error message. Also I have multiple sites with 'includes' but they don't sit behind a protected directory so they are not an issue right now.
by guvna
Fri Mar 10, 2017 8:06 am
Forum: PHP coding => General
Topic: includes in sub directories of password protected directories
Replies: 7
Views: 2229

includes in sub directories of password protected directories

New to this so any help will be greatly appreciated. I searched this topic and the 3 answers I don't think cover my issue. On one of my sites I have a password protected directory (ppd) and the cpanel support states that all sub directories of the ppd will inherit the username/password. In sub direc...