Jump to content

[SOLVED] form question


dekonstruct

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.