index.php
[php]
', $msg , '
- Name * <?php if (isset($err_myname)) { echo $err_myname; } ?> <?php if (isset($err_patternmatch)) { echo $err_patternmatch; } ?>
- Profile Picture: (Image Files, <100000k)
- Password <?php if (isset($err_passlength)) { echo $err_passlength; } ?>
- Password (confirm) <?php if (isset($err_mypassconf)) { echo $err_mypassconf; } ?>
-
Favorite Music
- /> Rock
- /> Classical
- /> Reggaeton
- How did you hear about us? Choose... >A friend >Facebook >Twitter
-
Request Type
- /> Question
- /> Comment
- /> Suggestion
- Comment: (html is not allowed) <?php if (isset($mycomments)) { echo $mycomments; } ?>
[/php]
process.php
seems to be working fine until i add about 13 lines of code on this page below
<?php ini_set('error_reporting', E_ALL); ini_set('display_errors', '1'); if (($_SERVER['REQUEST_METHOD'] == 'POST') && (!empty($_POST['action']))): if (isset($_POST['myname'])) { $myname = $_POST['myname']; } if (isset($_POST['mypassword'])) { $mypassword = $_POST['mypassword']; } if (isset($_POST['mypasswordconf'])) { $mypasswordconf = $_POST['mypasswordconf']; } if (isset($_POST['mycomments'])) { $mycomments = filter_var($_POST['mycomments'], FILTER_SANITIZE_STRING ); } if (isset($_POST['reference'])) { $reference = $_POST['reference']; } if (isset($_POST['favoritemusic'])) { $favoritemusic = $_POST['favoritemusic']; } if (isset($_POST['requesttype'])) { $requesttype = $_POST['requesttype']; } $formerrors = false; if ($myname === '') : $err_myname = 'I understand undefined index is something to do with error reporting but i have placed the code at top of my page that i thought would work
but instead i get this error message
Notice: Undefined index: myprofilepix in C:\xampp\htdocs\webs\06-03\workingfolder\forms\process.php on line 47
Notice: Undefined index: myprofilepix in C:\xampp\htdocs\webs\06-03\workingfolder\forms\process.php on line 48
Notice: Undefined index: File in C:\xampp\htdocs\webs\06-03\workingfolder\forms\process.php on line 57
have been through it about 6 times now thinking that i have mis-typed something
but i cannot see it am i turning into a blonde woman!
Please explain fully as technical jargon is difficult