小编Iva*_*uit的帖子

Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()

Possible Duplicate:
Failed to connect to mailserver at "localhost" port 25

I used this one however

$to = "somebody@example.com";
$subject = "My subject";
$txt = "Hello world!";
$headers = "From: webmaster@example.com" . "\r\n" .
"CC: somebodyelse@example.com";

mail($to,$subject,$txt,$headers);
Run Code Online (Sandbox Code Playgroud)

I have this error which is Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()

php

8
推荐指数
1
解决办法
10万
查看次数

更改"提交"按钮的图像

我想更改我的表单的提交按钮.我设法做到这一点很容易,但代码中断了.当我修复代码.提交按钮更改回其默认图像,它表示提交查询,我没有初始化.从那以后我还没弄清楚如何修复它.这很奇怪.

<?Php
    echo "<div style='text-align:right'>
       <form action='upd2.php' method='POST'>
       <Table border='0' align='right'>
       <tr>
        <td ><font size='-3'>ID Search</font></td>
        <td rowspan =2><input name='image' type='image' id='SUBMIT' src='images/_Images_buttons_search_button.jpg'></td>
       </tr>
       <tr>
        <td><input name='ID_NO' type='text' id='ID_NO'></td>
       </tr>
       </table><br>
       </FORM> </div>";
?>
Run Code Online (Sandbox Code Playgroud)

我把它传递给了这个

<?php
    print "<H2>Update User Info</H2>";

    $ID_NO   = clean($_POST['ID_NO']);
 $_SESSION["ID_NO"] = $ID_NO;
     if (isset($_POST['image'])) {
        $result = mysql_query("SELECT * FROM user_info WHERE ID_NO = '$ID_NO'");
        if(!mysql_num_rows($result)) {
            print "<BR><BR>There is no such User with a User Number of $ID_NO <BR><A HREF ='UpdateUser.php'>Go Back</A>";
     exit();
        }
        else …
Run Code Online (Sandbox Code Playgroud)

html javascript php forms

3
推荐指数
1
解决办法
1万
查看次数

用PHP框架

我可以在PHP中使用HTML框架吗?

我以为我能做到这一点......

<?php
session_start();
require("auth.php");
require("do_html_header.php");
if($_SESSION['SESS_admin'] == 0)
require("do_menu.php");
else
require("do_menu3.php");

do_html_header();
print"<h1>Welcome ". $_SESSION['SESS_FIRST_NAME']."!</h1>";
do_menu();
?>
</body>

<frameset rows="50%,50%">
<frame noresize="noresize" src="limits.php" />
<frame noresize="noresize" src="limits.php" />
</frameset>

</html>
Run Code Online (Sandbox Code Playgroud)

我把它放在任何地方,但似乎没有出现..

谷歌让我很困惑.

提前致谢

html php frames

0
推荐指数
1
解决办法
1万
查看次数

对齐名称&lt;p align="left"&gt;

我想通过使用将我的欢迎说明向右对齐,<p align="right"> 但它似乎不起作用..是因为 Session/PHP 不能与 p 对齐吗?

<?php

    session_start();
 if($_SESSION['SESS_admin'] == 0)
  require("do_menu.php");
 else
  require("do_menu3.php");
 require("auth.php");
    require("do_html_header.php");
 do_html_header();
 print"<p align=\"RIGHT\"><h1>Welcome ". $_SESSION['SESS_FIRST_NAME']."!</h1></p>";
 do_menu();

?>
Run Code Online (Sandbox Code Playgroud)

提前致谢!

html php alignment

-1
推荐指数
1
解决办法
9万
查看次数

标签 统计

php ×4

html ×3

alignment ×1

forms ×1

frames ×1

javascript ×1