Announcement

Collapse
No announcement yet.

Including code in html page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Including code in html page

    Use this :
    Code:
     <iframe align="middle" frameborder="0" marginwidth="0" marginheight="0" height="80" hspace="0" src="adman/adman.php" scrolling="no" vspace="0" width="468">
    Change : adman/adman.php with your including page

  • #2
    Form Mail

    First Create A Form
    Code:
    <form name="form1" method="post" action="go.php">
      <p>
        <input name="Name" type="text" id="Name" value=""> 
      Name</p>
      <p>
        <input name="Email" type="text" id="Email"> 
      Email</p>
      <p>
        <input name="Website" type="text" id="Website"> 
      Website</p>
      <p>
        <input type="submit" name="Submit" value="Submit">
    </p>
    </form>
    and create .php files named it "go.php
    Code:
    <?php 
    # You can use this script to submit your forms or to receive orders by email.
    $MailToAddress = "YOUR EMAIL HERE"; // your email address
    $redirectURL = "http://www.game-indonesia.com"; // the URL of the thank you page.
    
    # OPTIONAL SETTINGS =================================================================================================
    $MailSubject = "[Message from the contact form]"; // the subject of the email
    $MailToCC = ""; // CC (carbon copy) also send the email to this address (leave empty if you don't use it)
    # in the $MailToCC field you can have more then one e-mail address like "[email protected], [email protected], [email protected]"
    
    # If you are asking for a name and an email address in your form, you can name the input fields "name" and "email".
    # If you do this, the message will apear to come from that email address and you can simply click the reply button to answer it.
    
    # If you have a multiple selection box or multiple checkboxes, you MUST name the multiple list box or checkbox as "name[]" instead of just "name" 
    # you must also add "multiple" at the end of the tag like this: <select name="myselectname[]" multiple> 
    # you have to do the same with checkboxes
    
    # This script was written by Fajareza Game-indonesia.com
    # There are no copyrights in the sent emails.
    
    # SPAMASSASSIN RATING: 0.4
    
    # DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING ===================================================
    $w4fver =  "1.8";
    if (preg_match ("/".$_SERVER["SERVER_NAME"]."/i", $_SERVER["HTTP_REFERER"])) {
    $w4fMessage = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"><html>\n<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"></head><body>\n<font face=3Dverdana size=3D2>\n";
    if (count($_GET) >0) {
    	reset($_GET);
    	while(list($key, $val) = each($_GET)) {
    		$GLOBALS[$key] = $val;
    		if (is_array($val)) { 
    			$w4fMessage .= "<b>$key:</b> ";
    			foreach ($val as $vala) { 
    				$vala =stripslashes($vala);
    				$w4fMessage .= "$vala, ";
    			} 
    			$w4fMessage .= "<br>\n";
    		} 	
    		else {
    			$val = stripslashes($val);
    			if (($key == "Submit") || ($key == "submit")) { } 	
    			else { 	if ($val == "") { $w4fMessage .= "$key: - <br>\n"; }
    					else { $w4fMessage .= "<b>$key:</b> $val<br>\n"; }
    			}
    		}
    	} // end while
    }//end if
    else {
    	reset($_POST);
    	while(list($key, $val) = each($_POST)) {
    		$GLOBALS[$key] = $val;
    		if (is_array($val)) { 
    			$w4fMessage .= "<b>$key:</b> ";
    			foreach ($val as $vala) { 
    				$vala =stripslashes($vala);
    				$w4fMessage .= "$vala, ";
    			} 
    			$w4fMessage .= "<br>\n";
    		} 	
    		else {
    			$val = stripslashes($val);
    			if (($key == "Submit") || ($key == "submit")) { } 	
    			else { 	if ($val == "") { $w4fMessage .= "$key: - <br>\n"; }
    					else { $w4fMessage .= "<b>$key:</b> $val<br>\n"; }
    			}
    		}
    	} // end while
    	}//end else
    $w4fMessage .= "</font></body></html>";	
    if (!$email) {$email = $MailToAddress;}
    	$mailHeader = "From: $name <$email>\r\n";
    	$mailHeader .= "Reply-To: $name <$email>\r\n";
    	$mailHeader .= "Message-ID: <". md5(rand()."".time()) ."@". ereg_replace("www.","",$_SERVER["SERVER_NAME"]) .">\r\n";
    	$mailHeader .= "MIME-Version: 1.0\r\n";
    	$mailHeader .= "Content-Type: multipart/alternative;";			
    	$mailHeader .= " 	boundary=\"----=_NextPart_000_000E_01C5256B.0AEFE730\"\r\n";					
    	$mailHeader .= "X-Priority: 3\r\n";
    	$mailHeader .= "X-Mailer: PHP/" . phpversion()."\r\n";
    	$mailHeader .= "X-MimeOLE: Produced By Web4Future Easiest Form2Mail $w4fver\r\n";
    	if ($MailToCC) { $mailHeader .= "Bcc: $MailToCC\r\n"; }				
    	$mailMessage = "This is a multi-part message in MIME format.\r\n\r\n";
    	$mailMessage .= "------=_NextPart_000_000E_01C5256B.0AEFE730\r\n";
    	$mailMessage .= "Content-Type: text/plain;   charset=\"ISO-8859-1\"\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n";			
    	$mailMessage .= strip_tags($w4fMessage)."\r\n\r\n";			
    	$mailMessage .= "------=_NextPart_000_000E_01C5256B.0AEFE730\r\n";			
    	$mailMessage .= "Content-Type: text/html;   charset=\"ISO-8859-1\"\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n";			
    	$mailMessage .= "$w4fMessage\r\n\r\n";			
    	$mailMessage .= "------=_NextPart_000_000E_01C5256B.0AEFE730--\r\n";			
    
    	if (!mail($MailToAddress, $MailSubject, $mailMessage,$mailHeader)) { echo "Error sending e-mail!";}
    	else { header("Location: ".$redirectURL); }	
    } else { echo "<center><font face=verdana size=3 color=red><b>ILLEGAL EXECUTION DETECTED!</b></font></center>";}
    ?>
    http://game-indonesia.com

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X