Author Topic: Help with email form  (Read 3874 times)

sms

  • Posts: 6
    • View Profile
Help with email form
« on: May 19, 2005, 07:53:04 pm »
Hello,

I need to modify my site's php email form so that I can add the people that sent email to my mail List.  

So here is the code that I need to have in the php form in order to have my email form to work(this form is created by the listmail software):

<form method=post action=http://www.mysite.com/mail/signup.php>
<input type=hidden name=list value=1>
First Name: <input type=text name=fname size=10><br>
Last Name: <input type=text name=lname size=10><br>
Email: <input type=text name=email><br>
<input type=radio name=htmail value=HTML checked>HTML
<input type=radio name=htmail value=text>Text
<input type=submit name=sup value="Submit">
</form>



Here is my site's php email form code:

<p align="left"><?echo $la_mod_cont_sub_header?></p><br>
<form name="form" action="contact_us.php?session=$session" method="post" >
<table width="450" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="150" align="left"><strong><?echo $la_mod_cont_name?> </strong></td>
<td><input name="from_name" value="<?php echo $from_name; ?>" type="text" class="textbox" size="30" maxlength="30"><font color="#990000"> *</font></td>
</tr>
<tr>
<td width="150" align="left"><strong><?echo $la_mod_cont_addr?></strong></td>
<td><input name="from_email" value="<?php echo $from_email; ?>" type="text" class="textbox" size="30" maxlength="30"><font color="#990000"> *</font></td>
</tr>
<tr>
<td width="150" align="left"><strong><?echo $la_mod_cont_department?></strong></td>
<td><select name="to_email" value="<?php echo $to_email; ?>">
<option selected value="Please Select Department">Please Select Department
</option>
<option value="sales@mysite.com">Sales</option>
<option value="support@mysite.com">Technical Support</option>
<option value="affiliate@mysite.com">Affiliates</option>
<option value="linkpartners@mysite.com">Link Partners</option>
</select><font color="#990000"> *</font></td>
</tr>
<td width="150" align="left"><strong><?echo $la_mod_cont_subject?></strong></td>
<td><input name="subject_email" value="<?php echo $subject_email; ?>" type="text" class="textbox" size="30" maxlength="30"><font color="#990000"> *</font></td>
</tr>
<tr>
<td align="left" valign="top"><strong><?echo $la_mod_cont_mess?></strong></td>
<td valign="top"><textarea name="message" cols="54" rows="10" id="message"><?php echo $message; ?></textarea><br>

</td>
</tr>
<tr>
<td width="150" align="left" valign="top">&nbsp;</td>
<td><input type="submit" name="submit" class="submit" value="<?echo $la_mod_cont_send?>"><br> <?echo $la_account_form_must?></td>
</tr>
</table>
</form>




The contact_us.php doesn't send to FIRST NAME - LAST NAME and some other fields must be there too (List # , email in txt or HTML). I'm not a PHP programmer, So please HELP!!!!   :oops:

Is there a way to have those values added in my site's php?

Thanks in advance for your time