Im getting a funny error.
This is what happens.
1. I enter my information into my custom subscription page. and click on submit.
2. A second subcription page (it is the standard php list subscription page) pops up. It contains all the information that I have entered in my custom page.
3. I will only receive my welkom email after I click the button on the second subscription page.
Please take a look at my code.
Thanks
** my code **
- Code: Select all
This is a scrip validator program ---- it works
-------------------------------------------------
<script language="JavaScript" src="../script_tmt_validator.js" type="text/javascript"></script>
<form method=post action="http://website/phplist/?p=subscribe" name="subscribeform" tmt:validate="true" >
<p class="normal"><br />
<span class="heading">To receive information on upcoming events. Please enter</span></p>
<p class="heading style4 style28">* Required fields </p>
<table width="600" border="0" align="center" cellpadding="2" cellspacing="2">
<!-- E-mail -->
<tr valign="top" height="20"><td width="290" align="right" class="Normalbold">
<b> E-mail: </b> </td>
<td width="296"><input type="text" name="email" size="40" value="" tmt:required="true" tmt:errorclass="invalid" tmt:message="Please insert a valid email" tmt:pattern="email"/> <span class="style26">*</span></td>
</tr>
<!-- E-mail confirmation-->
<tr valign="top" height="20">
<td width="290" align="right" class="Normalbold">
<p><b> E-mail Confirmation: </b> </p>
<p><br />
</p></td>
<td><input type="text" name="emailconfirm" size="40" value="" tmt:required="true" tmt:errorclass="invalid" tmt:message="Please insert a valid email" tmt:pattern="email"/> <span class="style26">*</span></td>
</tr>
<!-- Email html -->
<tr valign="top" height="20">
<td width="290" align="right" class="Normalbold">
<p><b> I perfer to receive emails<br />
in </b> HTML format </p>
</td>
<td><select name="htmlemail" >
<option value="0" selected="selected">Receive plain e-mail</option>
<option value="0">Receive plain e-mail</option>
<option value="1">Receive HTML format e-mail</option>
</select> </td>
</tr>
<!-- Name -->
<tr valign="top" height="20"><td width="290" align="right" class="Normalbold">
<b> Name : </b> </td>
<td><input type="text" name="attribute1" size="30" tmt:required="true" tmt:message="Please insert your Name"/>
<span class="style26">*</span></td>
</tr>
<!-- Surname -->
<tr valign="top" height="20"><td width="290" align="right" class="Normalbold">
<b> Surname : </b> </td>
<td><input type="text" name="attribute2" size="30" value="" tmt:required="true" tmt:message="Please insert your Surname"/>
<span class="style26">*</span></td>
</tr>
<!-- Gender -->
<tr valign="top" height="20"><td width="290" align="right" class="Normalbold">
<b> Gender : </b> </td>
<td><select name="attribute3" id="f_gender">
<option value="M" selected="selected">Male</option>
<option value="M">Male</option>
<option value="F">Female</option>
</select> </td>
</tr>
</table>
<div align="center"><br />
<input type="hidden" name="list[1]" value="signup">
<input type="hidden" name="listname[1]" value="this is my test list"/>
<p>
<input type=submit name="subscribe" value="Subscribe to the Selected Newsletters" onClick="return checkform();">
<input type="reset" name="resetForm" value="Clear Form" />
</div>
</form>