Jump to content

Include


ShaolinF

Recommended Posts

Hey Guys,

 

How would I implement the code below into php ?

<div id="continue">

<form action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_s-xclick" /><input type="submit" value="Click to Continue >>" /><img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1" /><input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIIcQYJKoZIhvcNAQcEoIIIYjCCCF4CAQExggEwMIIBLAIBADCB=-----END PKCS7----- " /></form>

</div>

Link to comment
https://forums.phpfreaks.com/topic/73673-include/
Share on other sites

use it as-is, but not inside the <?php ?> for instance:

 

<?php

$here = "is some PHP code.";
echo $here;

?>
<div id="continue">

<form action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_s-xclick" /><input type="submit" value="Click to Continue >>" /><img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1" /><input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIIcQYJKoZIhvcNAQcEoIIIYjCCCF4CAQExggEwMIIBLAIBADCB=-----END PKCS7----- " /></form>

</div>

Link to comment
https://forums.phpfreaks.com/topic/73673-include/#findComment-371685
Share on other sites

drop out of PHP:

 

<?php	
if (mail($to, $subject, $mail, "From: ".$email_addr."\r\n"))
	{
	echo " Complete"; // Now, drop out of PHP into plain HTML
?>
<div id="continue">

<form action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_s-xclick" /><input type="submit" value="Click to Continue >>" /><img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1" /><input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIIcQYJKoZIhvcNAQcEoIIIYjCCCF4CAQExggEwMIIBLAIBADCB=-----END PKCS7----- " /></form>

</div>
<?php // back into PHP

	} else {
			echo "Failed"; 
			//refresh page, or contact administrator
			}
	$mail = str_replace("\n", "<br>", $mail);
?>

Link to comment
https://forums.phpfreaks.com/topic/73673-include/#findComment-371692
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.