Re: Forms

by "Keith D Sellars" <Keith(at)webgraffix.com>

 Date:  Tue, 10 Dec 2002 21:19:27 -0500
 To:  <hwg-basics(at)hwg.org>
 References:  p1
  todo: View Thread, Original
Beauford,

I did not mean to assume anything that I should not have (from your reply, I
think you took it this way).  After looking at Chris's response, I am
certain that he caught what I did not see (the missing closing bracket).
After not seeing that item, I then looked deeper into what else could have
caused your problem.  Luckily, you solved it already.

Thanks,
Keith D Sellars
WebGraffix
www.webgraffix.com

"Making database sites seem easy"
----- Original Message -----
From: "Beauford.2002" <beauford.2002(at)rogers.com>
To: <hwg-basics(at)hwg.org>
Sent: Wednesday, December 11, 2002 8:50 PM
Subject: Re: Forms


> I don't know why I haven't  learned from all the years emailing various
> lists that I should include every detail. I assumed (incorrectly again)
that
> people reading would make certain assumptions. I only included the code
that
> I assumed was the problem. I also didn't include other things on that page
> because they weren't relevant to the problem.
>
> I know myself that I have had to make assumptions when reading/answering
> others peoples problems.
>
> Thanks for all who answered as it did solve my problem.
>
> Beauford
>
> ----- Original Message -----
> From: "Jim Haslam" <jim(at)haslam.com>
> To: "Beauford.2002" <beauford.2002(at)rogers.com>
> Sent: Tuesday, December 10, 2002 6:06 PM
> Subject: Re: Forms
>
>
> > I don't see an action statement in your form that tells the form to go
to
> > the php script.
> >
> > Good Luck.
> >
> > Jim H
> >
> >
> > At 04:36 PM 12/11/02 -0500, you wrote:
> > >Hi,
> > >
> > >I'm sending this to both lists as I'm not sure where the problem is,
but
> I
> > >believe it is an issue with my HTML form. Here's the problem:
> > >
> > >I have a drop-down menu form on my webpage with employee names in it.
> When I
> > >choose a name and click submit it gets passed to a php page which
> accesses a
> > >mysql database and displays information about that employee.
> > >
> > >The problem is that the form is not sending the employee name to the
php
> > >page. If I insert the name in the php page manually, it works fine, so
> the
> > >problem appears to be with the form.
> > >
> > >Can someone help me out here - a sample of my code is below. I'm not
sure
> > >how to explain this, but whatever gets sent to the PHP page has to be
one
> > >variable - i.e. if I choose John, then the variable that gets sent to
the
> > >PHP should have the value John, if I choose Mary, the value of the
> variable
> > >should be Mary. Hope this makes sense.
> > >
> > >TIA
> > >
> > ><P><CENTER><FORM NAME="Employees">
> > ><SELECT NAME="name">
> > ><OPTION SELECTED VALUE=""></OPTION>
> > ><OPTION VALUE="John"</OPTION>John
> > ><OPTION VALUE="Mary"</OPTION>Mary
> > ></SELECT>
> > ><INPUT TYPE="submit" VALUE="Submit">
> >
> >
> >
>
>
>

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.