Jump to content

Recommended Posts

I was wondering if it is possible to put an inputed e-mail address into the subject line of an e-mail that is generated by a form.

Here's part of the code where it might be possible:

[code]<form action="/cgi-bin/formmail" method="post" id="contactForm" name="contactForm">
<input type="hidden" name="required" value="FirstName,LastName,Email,Company,JobTitle,Phone,Preference" />
<input type="hidden" name="sort" value="FirstName,LastName,email,Company,JobTitle,JobResponsibilities,Address,Address2,CityTownVillage,StateProvince,ZipPostal,Phone,Preference,Time,IntendedUse,QuestionsComments" />
    <input type="hidden" name="subject" value="xxxxx Contact Form," />
    <input type="hidden" name="recipient" value="xxxxxxx" />
    <input type="hidden" name="redirect" value="xxxxx" />

    <fieldset style="padding: 10px;">
    <legend style="margin-left: 180px; padding-left: 10px; padding-right: 10px;">
      <strong>(<span class="required">*</span>) indicates required field.</strong>
    </legend>

    <br />

    <label for="FirstName">First Name <span class="required">*</span>:</label>
    <input name="FirstName" id="FirstName" type="text" class="textfield_medium" />

    <br />

    <label for="LastName">Last Name <span class="required">*</span>:</label>
    <input name="LastName" id="LastName" type="text" class="textfield_medium" />
    <br />

    <label for="Email">E-mail <span class="required">*</span>:</label>
    <input name="Email" id="Email" type="text" class="textfield_medium" />
    <br />
[/code]

thanks!
Link to comment
https://forums.phpfreaks.com/topic/30378-solved-form-question/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.