<br /> <b>Notice</b>: Undefined variable: firstname in <b>C:\xampp\htdocs\dl\index.php</b> on line <b>70</b><br /

Member Avatar
diafol

So?
Crystal ball says you have a variable in line 70 called $firstname that you haven't intialized.
What do you want?
A description of the error or a debug of your code? If the latter, perhaps posting your code would be an idea.

sorry i just forgot to put the codes

    <label class="grey" for="firstname">Firstname:</label>
                    <input class="field" type="text" name="firstname" id="firstname"  size="23" value="<?php echo $firstname ?>"/>

You have missed the ";"

<label class="grey" for="firstname">Firstname:</label>
<input class="field" type="text" name="firstname" id="firstname" size="23" value="<?php echo $firstname; ?>"/>
Member Avatar
diafol

Also 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 place your html -->