i'm facing the following problem:
I have a form which is used for both insert or update data.. The situation is like that: when the user fills the form, press the submit button and an error (regarding the validation of data) occurs (e.g. he puts letters instead of numbers), the form sends him to a page in order to see what was wrong and a "back" button appears. Now, when he is in an 'update mode' and press 'back' the form is filled in and when he is in 'insert mode' the form is empty and this is because the following peace of code:
Expand|Select|Wrap|Line Numbers
- <form method=post
- action="<?=$edit?"edit_book.php":"insert_book.php";?>">
- <table border=0>
- <tr>
- <td>ISBN:</td>
- <td><input type=text name=isbn value="<?=$edit?$book["isbn"]:""; ?>"></td>
- </tr>
Thanx in advance, Stam