Page 1 of 1

Help me in resolving this issue...

Posted: Tue Jun 16, 2009 1:47 am
by kishoremcp
I had the following code with me./;..
but i am unable to receive the mail to kishoremcp@gmail.com (An example) when submit button is pressed.
Please help me ,
The code is
_______________________
<!-- phpForms.net form BEGIN -->
<style>
<!--
.phpForms_pgtitle
{
font-family : Arial;
font-size : 18px;
color : #1200d9;
font-weight : bold;
}
.phpForms_btn
{
border-top-width : 1px;
border-left-width : 1px;
border-bottom-width : 1px;
border-right-width : 1px;
border-top-color : #e4e4e4;
border-left-color : #e4e4e4;
border-right-color : #c1c1c1;
border-bottom-color : #c1c1c1;
font : Verdana, Arial, Helvetica, sans-serif;
color : #000000;
}
-->
</style>

<script language="JavaScript">
<!--
var aIds = Array( 'pg_24c3d801e1' );
var aId = Array ();
function ChangePage( to_hide, to_show )
{
var tbl_hide = document.getElementById( aIds[to_hide] );
var tbl_show = document.getElementById( aIds[to_show] );

if ( typeof(tbl_hide)=='object' && tbl_hide!=null )
if ( typeof(tbl_show)=='object' && tbl_show!=null )
{
tbl_hide.style.display = 'none';
tbl_show.style.display = '';
}

}
function NotEmpty( old_res, id, field_title )
{
if ( old_res==0 )
{
var el = document.getElementById( id );
if ( typeof(el)=='object' && el!=null )
if ( el.value=='' )
{
alert( 'You should fill "' + field_title + '"' );
return 1;
}
}
return 0;
}
function Email( old_res, id, field_title )
{
if ( old_res==0 )
{
var el = document.getElementById( id );
if ( typeof(el)=='object' && el!=null && el.value!='' )
{
var re = /^[a-zA-Z0-9_\.\-]+@([a-zA-Z0-9][a-zA-Z0-9-]+\.)+[a-zA-Z]{2,6}$/;

if (el.value.search(re) != -1 ) return 0;
else
{
alert( '"'+field_title+'" must be email' );
return 1;
}
}
}
return 0;
}



-->
</script>

<form name="frm_1c1a0eea90" id="frm_1c1a0eea90" method="POST" enctype="multipart/form-data" action="http://localhost/phpforms/index.php" onSubmit="return false;">
<input type="hidden" name="act" value="idx">
<input type="hidden" name="code" value="01">
<input type="hidden" name="fid" value="1c1a0eea90">

<script language="JavaScript">
<!--
function CheckPage24c3d801e1()
{
var nResult = 0;
nResult += NotEmpty( nResult, 'fld_f3d588a2cc','Name' );
nResult += Email( nResult, 'fld_6c5dc75c0d','Email' );
nResult += NotEmpty( nResult, 'fld_b5e6b9dac1','Message' );

if ( nResult == 0 )
{

if (1)
{
var el = document.getElementById( 'frm_1c1a0eea90' );
if ( typeof(el)=='object' && el != null ) el.submit();
}
else ChangePage( 0, 1 );
}
}
-->
</script>


<!-- Page -->
<table id="pg_24c3d801e1" border="0" cellpadding="2" cellspacing="1" width="600" bgcolor="#FFFFFF" class="phpForms_main" style="display:;border: solid 1px #777777;">


<tr>
<td width="30%" align="left" bgcolor="#cdcdcd" valign="top">
<span style="">Name</span> <font color='red'>*</font>
</td>
<td width="70%" align="left" bgcolor="#cdcdcd">
<input type="text" name="fld_f3d588a2cc" id="fld_f3d588a2cc" value="" style="width:100%;">
</td>
</tr>
<tr>
<td width="30%" align="left" bgcolor="#cdcdcd" valign="top">
<span style="">Email</span> <font color='red'>*</font>
</td>
<td width="70%" align="left" bgcolor="#cdcdcd">
<input type="text" name="fld_6c5dc75c0d" id="fld_6c5dc75c0d" value="" style="width:100%;">
</td>
</tr>
<tr>
<td width="30%" align="left" bgcolor="#cdcdcd" valign="top">
<span style="">Message</span> <font color='red'>*</font>
</td>
<td width="70%" align="left" bgcolor="#cdcdcd">
<textarea name="fld_b5e6b9dac1" id="fld_b5e6b9dac1" rows="5" style="width:100%;"></textarea>

</td>
</tr>


<tr>
<td colspan="2" align="center" class="phpForms_main">

</td>
</tr>
<tr>
<td colspan="2" align="center" class="phpForms_main">

</td>
</tr>
<tr>
<!-- Buttons -->
<td colspan="2" align="center" class="phpForms_main">
<input type="button" id="subbut" value="Submit" onClick='CheckPage24c3d801e1();' style="width:30%; background-color : #a2a2a2" class="phpForms_btn">

</td>
</tr>

</table>
<!-- /Page -->


</form>


<!-- /phpForms.net form END -->

Re: Help me in resolving this issue...

Posted: Tue Jun 16, 2009 2:46 am
by jaoudestudios
I just had a quick glance through, but I dont see anything in there that actually sends the email, so it is no surprise you do not recieve it!

Re: Help me in resolving this issue...

Posted: Wed Jun 16, 2010 6:35 am
by kishoremcp
Ok. so What to add in the above script to get a mail.