> Smile-Poet wrote:
> > In the book I am trying to 'learn and make' from this is an input line
from
> > a sign up form.
> >
> > <td  align="left" valign="top"><input id="last_name" name="last_name"
> > type="text" value="<?=$_POST['last_name'];?>" /></td>
> >
>
> I do the same thing. When the form is displayed initially, with a simple
> link to the script, there are no values in the $_POST array so
> $_POST['last_name]' is blank and the result is value=""
>
> When someone fills in the form and posts it back to the script
> $_POST['last_name'] may have a value. The script should do some error
> checking for missing input (or whatever else it requires). If something
> is wrong then the form will be redisplayed but with the user's input for
> last_name and the other fields echoed. This is much better than the
> usual instructions to 'go back and complete the form'.
>
> Does that make sense?
>
> Sheila
> --

Sheila,

The problem is that this (the 'value=""' ' entry) appears on the form:

<?=$_POST['last_name'];?>

and similar entries in the other input windows.   These do not clear and
have to be deleted when the requested detail is being inserted.

The script does what you describe and returns the form with a message
specifying where the fresh entry needs to be made.    But can this be
achieved only with the little piece of script turning up on the form when
first called?   And having to be deleted?   In the book the fields are shown
blank, but I cannot see anything that I am not copying as instructed.

And, although the form code has this

<input name="req" type="hidden"  id="req" value="process" >

and the script has this

switch ($_REQUEST['req']) {

I get an error message that 'req' is not defined.    I mention it because it
seems possible the two problems are connected.

Joseph


____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
       Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set 
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

Reply via email to