RE: [PHP] Not Displaying From Vars??
| From: | John W. Holmes | Date: | Sun, 29 Sep 2002 18:06:43 +0000 |
| Subject: | RE: [PHP] Not Displaying From Vars?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-118096@lists.php.net to get a copy of this message | ||
Try $_POST['sun_reg'] or $_GET['sun_reg'], depending on the method of
your form.
You probably have register globals off, that's why $sun_reg isn't
created. That's a good thing.
---John Holmes...
> -----Original Message-----
> From: Stephen Craton [mailto:webmaster@melchior.us]
> Sent: Sunday, September 29, 2002 2:01 PM
> To: php-general@lists.php.net
> 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