3
Contributors
4
Replies
5
Views
5 Years
Discussion Span
Last Post by diafol
0

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.

Edited by diafol

0

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 ?>"/>
1

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; ?>"/>
1

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 -->
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.