E-mailform with subject

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gert-Jan van Middelkoop

    E-mailform with subject

    Hi,

    I'm using an e-mailform on my website. I would like to make a dropdownmenu
    with several subjects, so when the e-mail arrives I can immediatly see it's
    subject.

    Therefore, this code must be changed:

    <input type="hidden" name="subject" value="selectio n of the dropdownmenu"

    Any suggestions?

    Regards,
    Gert-Jan


  • Janwillem Borleffs

    #2
    Re: E-mailform with subject


    "Gert-Jan van Middelkoop" <gjvanmiddelkoo p@wanadoo.nl> schreef in bericht
    news:3fe64151$0 $189$1b62eedf@n ews.wanadoo.nl. ..[color=blue]
    > Hi,
    >
    > I'm using an e-mailform on my website. I would like to make a dropdownmenu
    > with several subjects, so when the e-mail arrives I can immediatly see[/color]
    it's[color=blue]
    > subject.
    >
    > Therefore, this code must be changed:
    >
    > <input type="hidden" name="subject" value="selectio n of the dropdownmenu"
    >
    > Any suggestions?
    >[/color]

    Use a select menu instead of a hidden field:

    <select name="subject">
    <option selected="selec ted">Default subject</option>
    <option>Optiona l subject</option>
    ... etc
    </select>


    JW



    Comment

    • Gert-Jan

      #3
      Re: E-mailform with subject

      Thanks, it works.

      "Janwillem Borleffs" <jw@jwscripts.c om> schreef in bericht
      news:3fe64852$0 $118$3b62cedd@n ews.wanadoo.nl. ..[color=blue]
      >
      > "Gert-Jan van Middelkoop" <gjvanmiddelkoo p@wanadoo.nl> schreef in bericht
      > news:3fe64151$0 $189$1b62eedf@n ews.wanadoo.nl. ..[color=green]
      > > Hi,
      > >
      > > I'm using an e-mailform on my website. I would like to make a[/color][/color]
      dropdownmenu[color=blue][color=green]
      > > with several subjects, so when the e-mail arrives I can immediatly see[/color]
      > it's[color=green]
      > > subject.
      > >
      > > Therefore, this code must be changed:
      > >
      > > <input type="hidden" name="subject" value="selectio n of the[/color][/color]
      dropdownmenu"[color=blue][color=green]
      > >
      > > Any suggestions?
      > >[/color]
      >
      > Use a select menu instead of a hidden field:
      >
      > <select name="subject">
      > <option selected="selec ted">Default subject</option>
      > <option>Optiona l subject</option>
      > ... etc
      > </select>
      >
      >
      > JW
      >
      >
      >[/color]


      Comment

      • @SM

        #4
        Re: E-mailform with subject



        Gert-Jan van Middelkoop a *crit :[color=blue]
        >
        > Hi,
        >
        > I'm using an e-mailform on my website. I would like to make a dropdownmenu
        > with several subjects, so when the e-mail arrives I can immediatly see it's
        > subject.
        >
        > Therefore, this code must be changed:
        >
        > <input type="hidden" name="subject" value="selectio n of the dropdownmenu"[/color]

        <select name="subject">
        <option value="selectio n of the dropdownmenu"> selection of the dropdownmenu
        <option value="Tres bon site"> Very good site
        </select>

        You just need to have an element with :
        - good name : "subject"
        - good value : automaticly given by select-menu

        Comment

        Working...