Hello
I hope this time i can get this working i have fixing everything and thanks to all who helped me 🙂
know i have created this script as modules
The url to this script will be
http://thesitehere.com/modules.php?modname=mail
after the user put their info to send the mail
the link will be
http://thesitehere.com/modules/mail/includes/mail_now.php
i need to change this so it is going to be like
http://thesitehere.com/modules.php?modname=mail&action=mail
Here is the code
<br>
<form name="mail_contacts" action="modules/mail/includes/mail_now.php" method="post">
<input name="user_email" type="hidden" value="<?php echo $_POST['username']; ?>" >
<input name="user_pasword" type="hidden" value="<?php echo $_POST['password']; ?>" >
<table width="596" border="0" align="center" cellpadding="0" cellspacing="0" class="tblBorder1">
<!--DWLayoutTable-->
<tr>
<td height="20" valign="top" class="tbl_header_bar">Contact Email </td>
<td valign="top"><input name="chkAll" type="checkbox" id="chkAll" value="chkAll" onClick="docheckAll();"> </td>
</tr>
<?php
if ($mail->connect($username,$password))
{
// we're connected
// run rx_data function to 'idle' on the network
// rx_state will loop until the connection is dropped
$contact_list = $mail->rx_data();
$contact_num = count($contact_list);
for ($i=0; $i<$contact_num; $i++)
{
switch($_GET['action']) {
case 'mail':
include('modules/mail/includes/mail_now.php');
break;
}
?>
i try to change
<form name="mail_contacts" action="modules/mail/includes/mail_now.php" method="post">
to
<form name="mail_contacts" action="modules.php?modname=mail&action=mail" method="post">
but it Retrn me to the same page where i'm going to put the info so i dont no what's wrong with this .. could someone help me ont his
Thanks alot 🙂