<br /> <b>Notice</b>: Undefined variable: firstname in <b>C:\xampp\htdocs\dl\index.php</b> on line <b>70</b><br /
mariaceline_21 0 Unverified User
Recommended Answers
Jump to PostAlso if $firstname isn't set, you'll get an error. Once way arround this is to initialize all variables at the beginning of the page before any POST processing:
<?php $firstname=""; $lastname = ""; //etc if(isset($_POST['submit'])){ //process your form data and set $firstname etc } ?> <!-- now …
All 4 Replies
Reply to this topic Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.