|
subscribe.php
<form method="POST" action="do.php">
<input type="text" name="email" size="17">
<input type="image" value="submit" src="image/submit-button.gif" width="71" height="20" border="0" alt="SUBMIT!" name="image"></p>
do.php
<?
$file = "mail.txt";
$open = fopen($file, "a");
?>
<?
$name = $_POST['email'];
?>
<?
if(!$email == "" && (!strstr($email,"@") || !strstr($email,".")))
{
echo("<b>Please enter a valid E-mail");
}
else
{
echo ("<b>$email</b>");
echo "<p> Thank you for subscribing FREE newsletter from Dommyx.com.</p>";
echo "<p> You will get latest promotion and news from Dommyx.com from time to time.</p>";
fwrite($open, $email);
fwrite($open, "<br>");
}
?>
不懂why不能用post method.....
可以看www.dommyx.com/subscribe.php 看看
谢谢!! |
|
|
|
|
|
|
|
发表于 14-8-2007 05:51 PM
|
显示全部楼层
|
|
|
|
|
|
|

楼主 |
发表于 14-8-2007 06:38 PM
|
显示全部楼层
回复 #2 zuying1985 的帖子
我试过了。。。不能。
不懂是不是front page 的coding有问题
我尝试用html validator....的确有问题,不过不会fix... |
|
|
|
|
|
|
|
发表于 14-8-2007 06:43 PM
|
显示全部楼层
|
|
|
|
|
|
|

楼主 |
发表于 14-8-2007 06:59 PM
|
显示全部楼层
|
|
|
|
|
|
|

楼主 |
发表于 14-8-2007 07:05 PM
|
显示全部楼层
请问要用wat software才不会像front page 一样,出那么多的乱码?? |
|
|
|
|
|
|
| |
本周最热论坛帖子
|