Re: Not Displaying From Vars??
| From: | debbie_dyer | Date: | Sun, 29 Sep 2002 18:13:37 +0000 |
| Subject: | Re: Not Displaying From Vars?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-118100@lists.php.net to get a copy of this message | ||
Yeah got to be register_globals and also a tip to save future problems if
you are working with forms and u want to redisplay submitted data you will
need to learn about stripslashes (if you have magic_quotes_gpc on) and
htmlspecialchars.
And for the db additions addslashes (for if magic_quotes_gpc is off)
----- Original Message -----
From: "Stephen Craton" <webmaster@melchior.us>
To: <php-general@lists.php.net>
Sent: Sunday, September 29, 2002 7:00 PM
Subject: [PHP] Not Displaying From Vars??
> I bet you're getting sick of hearing from me but yet again, I'm having
> trouble. I have a form that you type in a number for how many hours an
> employee has worked. When they submit the form, it's supposed to
> display, again, what they typed in and record them to a database to be
> used for a later use. The form, evidently, submits fine but what my
> problem is, is that it won't display what they typed in.
>
> All I'm doing is putting in this:
>
> <?php echo $sun_reg; ?>
>
> The input field looks like this:
>
> <input name="sun_reg" type="text" class="hours"
> id="sun_reg"
> size="4" maxlength="3">
>
> Does anyone see the problem? I can assign the form method to be GET and
> it displays all the field values in the URL just fine, it's just not
> displaying in the page itself.
>
> Thanks,
> Stephen
> http://www.melchior.us
> http://php.melchior.us
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>