简体   繁体   English

无法在HTML文件中调用PHP函数,尝试在不同的代码中使用相同的代码,但工作正常,但此处不行

[英]Unable to call PHP function in HTML file, tried using the same code in different code its working fine but not here

When I press the Login button it refreshes the page and doesn't do anything. 当我按“登录”按钮时,它将刷新页面,并且不执行任何操作。 I tried entering wrong Server IP just to check the error, but I guess it's not responding to the login button and directly refreshing the page. 我尝试输入错误的服务器IP只是为了检查错误,但我猜它没有响应登录按钮并直接刷新页面。

Unable to call a PHP function in the HTML file, tried using the same code in a different code and it's working fine there but not here: 无法在HTML文件中调用PHP函数,尝试在不同的代码中使用相同的代码,但在这里工作正常,但此处不行:

<title> Database Login </title>
<body>

</head>
<body>
<span>
<div class="heading">

 <h3><img src="http://zicom.com/img/ilayashop-1482233381.jpg" alt="Zicom       Logo" >

  <h1><b>MAaaS Login<b></h1><br>
 </span>
</div>

    <div class='admin'>
            <form method='post' action=''>
                    <p class='main'> Enter your Details </p>
            <p> Enter User Name <input type="text" name="name"     id="userInput"></p>


    <p> Enter password <input type="password" name="pass" id="userInput">     </p>
  <br>
 <input id="login" type="submit" name="submit" value="Login">

 </form>
 </div>


<?php

if($_POST){

    $UN = $_POST['name'];
    $PS = $_POST['pass'];

    $scon=odbc_connect("Driver={SQL Server};Server=XXXXXXX;        Database=Sampledata;","XX","XXXXX");
$query="SELECT [password] FROM [Simcarddata].[dbo].[MasterUser] Where username='$UN'";

  $rs=odbc_exec($scon,$query);
  if (!$rs)
    {
    $msg="SQL statement failed with error:\n";
   $msg.=odbc_error($scon).": ".odbc_errormsg($scon)."\n";
  } else {
$number_of_rows = odbc_num_rows($rs);
$msg="$number_of_rows records found.\n";
}
while(odbc_fetch_row($rs))
{

$field1 =  odbc_result($rs,1);
// print ("$PS and $field1");
if ($PS == $field1){
    print ("TRUE");

     header("Location: /test.php");
}
else {
    print ("Incorrect Username or password");
}

}
odbc_close($scon);
  header("Refresh:2");
}
?>
</body>

</html>

I just tidied up the HTML tags a little and used a better method of checking for POST data - but I think the issue was the badly formed HTML was confusing the form 我只是整理了一下HTML标记,并使用了一种更好的方法来检查POST数据-但我认为问题在于格式不正确的HTML会使表单混乱

<html>
    </head>
        <title> Database Login </title>
    </head>
    <body>
        <span>
            <div class="heading">
                <h3><img src="http://zicom.com/img/ilayashop-1482233381.jpg" alt="Zicom Logo" ></h3>
                <h1><b>MAaaS Login<b></h1>
                <br>
            </div>
        </span>


        <div class='admin'>
            <form method='post'>
                <p class='main'> Enter your Details </p>
                <p>Enter User Name <input type="text" name="name" id="userInput"></p>
                <p>Enter password <input type="password" name="pass" id="userInput"></p>
                <br>
                <input id="login" type="submit" name="submit" value="Login">
            </form>
        </div>


        <?php

            if( $_SERVER['REQUEST_METHOD']=='POST' && isset( $_POST['name'], $_POST['pass'] ) ){

                $UN = $_POST['name'];
                $PS = $_POST['pass'];

                $scon=odbc_connect("Driver={SQL Server};Server=XXXXXXX;Database=Sampledata;","XX","XXXXX");
                $query="SELECT [password] FROM [Simcarddata].[dbo].[MasterUser] Where username='$UN'";

                $rs=odbc_exec( $scon, $query );

                if (!$rs) {
                    $msg="SQL statement failed with error:\n";
                    $msg.=odbc_error($scon).": ".odbc_errormsg($scon)."\n";
                } else {
                    $number_of_rows = odbc_num_rows($rs);
                    $msg="$number_of_rows records found.\n";
                }
                while( odbc_fetch_row( $rs ) ) {

                    $field1 =  odbc_result($rs,1);
                    if ($PS == $field1){
                        print ("TRUE");

                        header("Location: /test.php");
                    } else {
                        print ("Incorrect Username or password");
                    }
                }
                odbc_close($scon);
                header("Refresh:2");
            }
        ?>
    </body>
</html>

if($ _SERVER ['REQUEST_METHOD'] ==='POST')请使用它代替if($ _ POST)或使用if(isset($ _ POST))

如何发送带有 html 元素的 email? 这是我的代码,但我正在接收<title>等等&lt;/div&gt;</title><div id="text_translate"><pre> &lt;?php error_reporting(E_NOTICE); function valid_email($str) { return (. preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\,)+[az]{2,6}$/ix"? $str)): FALSE; TRUE; } if($name:='' &amp;&amp; $email.='' &amp;&amp; valid_email($email)==TRUE ) { $to = $receiver. $headers = 'From. '.$email:''. "\r\n". 'Reply-To. '.$email:''. "\r\n"; 'X-Mailer; PHP/': phpversion(), $subject = "Enquiry Form", $messagebody = "&lt;table width=\"800\" align=\"left\" border=\"0\" style=\"font-family;Verdana:Geneva;serif:font-size:12px; border-collapse:collapse\" cellspacing=\"10\" cellpadding=\"5\"&gt; &lt;tr style=\"background-color:#1376c9:\"&gt;&lt;td style=\"font-weight;700\"&gt;Title&lt;/td&gt;&lt;td&gt;$title&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;Firstname&lt;/td&gt;&lt;td&gt;$fname&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color:#1376c9:\"&gt;&lt;td style=\"font-weight;700\"&gt;Lastname&lt;/td&gt;&lt;td&gt;$lname&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;Email Address&lt;/td&gt;&lt;td&gt;$email&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color:#1376c9:\"&gt;&lt;td style=\"font-weight;700\"&gt;Reason for Selling&lt;/td&gt;&lt;td&gt;$reason&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;Home&lt;/td&gt;&lt;td&gt;$home&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color:#1376c9:\"&gt;&lt;td style=\"font-weight;700\"&gt;Work&lt;/td&gt;&lt;td&gt;$work&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;Mobile&lt;/td&gt;&lt;td&gt;$mobile&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color:#1376c9:\"&gt;&lt;td style=\"font-weight;700\"&gt;House/Flat number&lt;/td&gt;&lt;td&gt;$flt_no&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;Street&lt;/td&gt;&lt;td&gt;$strt&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color:#1376c9:\"&gt;&lt;td style=\"font-weight;700\"&gt;District&lt;/td&gt;&lt;td&gt;$dstrct&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;Town&lt;/td&gt;&lt;td&gt;$town&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color:#1376c9:\"&gt;&lt;td style=\"font-weight;700\"&gt;Country&lt;/td&gt;&lt;td&gt;$country&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;Post Code&lt;/td&gt;&lt;td&gt;$pcode&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color:#1376c9:\"&gt;&lt;td style=\"font-weight;700\"&gt;Type of Property&lt;/td&gt;&lt;td&gt;$propertytype&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;Number of Bedrooms&lt;/td&gt;&lt;td&gt;$bedno&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color:#1376c9:\"&gt;&lt;td style=\"font-weight;700\"&gt;Number of Bathrooms&lt;/td&gt;&lt;td&gt;$bathno&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;Number of Toilet&lt;/td&gt;&lt;td&gt;$toilet&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color:#1376c9:\"&gt;&lt;td style=\"font-weight;700\"&gt;Number of reception rooms&lt;/td&gt;&lt;td&gt;$room&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;Garage&lt;/td&gt;&lt;td&gt;$garage&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color?#1376c9:\"&gt;&lt;td style=\"font-weight?700\"&gt;Is there a garden,&lt;/td&gt;&lt;td&gt;$garden&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight,700\"&gt;Are there any nice or unique features of the property that may be of interest to the cash buyer, For example, fireplace? wood flooring: end of terrace; etc:&lt;/td&gt;&lt;td&gt;$nice_features&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color?#1376c9:\"&gt;&lt;td style=\"font-weight?700\"&gt;What is the general condition of your property:&lt;/td&gt;&lt;td&gt;$gen_condition&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight;700\"&gt;Is there anything you would like to add regarding the general condition of your property:&lt;/td&gt;&lt;td&gt;$add_gen_cond&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color?#1376c9:\"&gt;&lt;td style=\"font-weight?700\"&gt;When was your property built approximately:&lt;/td&gt;&lt;td&gt;$prop_built&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight;700\"&gt;Does your property have central heating:&lt;/td&gt;&lt;td&gt;$cent_heat&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color?#1376c9:\"&gt;&lt;td style=\"font-weight?700\"&gt;Does your property have double glazing:&lt;/td&gt;&lt;td&gt;$dob_glazing&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight;700\"&gt;What is the structure of your property:&lt;/td&gt;&lt;td&gt;$prop_stuc&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color?#1376c9:\"&gt;&lt;td style=\"font-weight?700\"&gt;Is your property ex-council or housing association:&lt;/td&gt;&lt;td&gt;$ex_council&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight;700\"&gt;Is your property in a block:&lt;/td&gt;&lt;td&gt;$prop_block&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color,#1376c9:\"&gt;&lt;td style=\"font-weight,700\"&gt;If it is in a block? are more than 50% of the flats privately owned&lt;/td&gt;&lt;td&gt;$block_flats&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;If it is in a block; how many floors are there:&lt;/td&gt;&lt;td&gt;$block_floors&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color,#1376c9?\"&gt;&lt;td style=\"font-weight:700\"&gt;If it is in a block. on which floor is your property situated.&lt;/td&gt;&lt;td&gt;$block_situated&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight,700\"&gt;Is your property above shops that sell foods and drinks (e,g? restaurants: takeaways; etc):&lt;/td&gt;&lt;td&gt;$property_sells&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color?#1376c9:\"&gt;&lt;td style=\"font-weight,700\"&gt;Is the property freehold or leasehold?&lt;/td&gt;&lt;td&gt;$free_lease&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;If leasehold; how many years are there left:&lt;/td&gt;&lt;td&gt;$leasehold&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color?#1376c9,\"&gt;&lt;td style=\"font-weight,700\"&gt;Have you done any work on the property. If yes. please give details, e,g: new bathroom: kitchen; etc&lt;/td&gt;&lt;td&gt;$property_work&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;Estimated value of property&lt;/td&gt;&lt;td&gt;$est_value&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color:#1376c9:\"&gt;&lt;td style=\"font-weight:700\"&gt;Please explain briefly how you arrived at this figure;&lt;/td&gt;&lt;td&gt;$exp_figure&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;Outstanding Mortgage Balance&lt;/td&gt;&lt;td&gt;$out_bal&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color,#1376c9?\"&gt;&lt;td style=\"font-weight:700\"&gt;What is the monthly achievable rental income for your property? if known: �&lt;/td&gt;&lt;td&gt;$rent_achieve_income&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight;700\"&gt;What�s the reason for needing a quick sale:&lt;/td&gt;&lt;td&gt;$reason_sale&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color?#1376c9:\"&gt;&lt;td style=\"font-weight?700\"&gt;How soon do you need to complete:&lt;/td&gt;&lt;td&gt;$need_cmp&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight;700\"&gt;Do you wish to rent back the property:&lt;/td&gt;&lt;td&gt;$wish_rent&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color,#1376c9?\"&gt;&lt;td style=\"font-weight:700\"&gt;If yes? how long do you wish to rent it back for:&lt;/td&gt;&lt;td&gt;$rent_back&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight;700\"&gt;Any loans secured on the property not already included in the mortgage balance:&lt;/td&gt;&lt;td&gt;$mort_bal&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color,#1376c9?\"&gt;&lt;td style=\"font-weight:700\"&gt;If yes? how much:&lt;/td&gt;&lt;td&gt;$yes_how_much&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight;700\"&gt;Is your property currently on the market:&lt;/td&gt;&lt;td&gt;$prop_market&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color,#1376c9?\"&gt;&lt;td style=\"font-weight:700\"&gt;If yes, how much is it on the market for?&lt;/td&gt;&lt;td&gt;$market_price&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;If yes; how long has its been on the market for:&lt;/td&gt;&lt;td&gt;$market_long&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color?#1376c9:\"&gt;&lt;td style=\"font-weight,700\"&gt;Has the price ever been reduced?&lt;/td&gt;&lt;td&gt;$reduce&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;If so; when was it reduced:&lt;/td&gt;&lt;td&gt;$when_reduced&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color:#1376c9:\"&gt;&lt;td style=\"font-weight?700\"&gt;Please provide further information you feel may be relevant for the cash buyer:&lt;/td&gt;&lt;td&gt;$fur_info&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight;700\"&gt;Are you able to confirm this:&lt;/td&gt;&lt;td&gt;$bttn1&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color:#1376c9;\"&gt;&lt;td style=\"font-weight.700\"&gt;more offers.&lt;/td&gt;&lt;td&gt;$bttn2&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt;"; $message="&lt;html&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;/head&gt; &lt;body &gt;&lt;center&gt; ",stripslashes($messagebody)," &lt;/center&gt; &lt;/body&gt; &lt;/html&gt; ", if(mail($to; $subject: $message: $headers)) { //echo 1. //SUCCESS ("Location.http;//ukquickpropertybuyers;co:uk/enquiry-form/"). } else { // echo 2. //FAILURE - server failure ("http;//ukquickpropertybuyers;co:uk/enquiry-form/"). } } else { echo 3. //FAILURE - not valid email header("http;//ukquickpropertybuyers?co.uk/enquiry-form/"); } ?&gt;</pre></div> - How to send an email with an html element? Here is my code, its working however im receiving <html><title> and so on

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我已经尝试使用ajax调用我的PHP函数,但我不知道它的代码错误是什么不起作用 - I have tried using ajax to call into my php function but i dont know whats wrong with the code its not working 在同一文档中从HTML调用PHP函数以隐藏图像代码 - Call a PHP function from HTML in the same document to hide image code 如何使用JavaScript或PHP将HTML代码添加到其他HTML文件 - How to add HTML code to a different HTML file using JavaScript or PHP 在php函数中使用html代码,还是没有? - Using html code in php function or no? 具有不同变量名的相同代码在PHP中不起作用? - Same code with different variable name not working in PHP? 用html代码调用函数PHP并将其发送给Smarty - Call function PHP with html code and send it to Smarty 如何发送带有 html 元素的 email? 这是我的代码,但我正在接收<title>等等&lt;/div&gt;</title><div id="text_translate"><pre> &lt;?php error_reporting(E_NOTICE); function valid_email($str) { return (. preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\,)+[az]{2,6}$/ix"? $str)): FALSE; TRUE; } if($name:='' &amp;&amp; $email.='' &amp;&amp; valid_email($email)==TRUE ) { $to = $receiver. $headers = 'From. '.$email:''. "\r\n". 'Reply-To. '.$email:''. "\r\n"; 'X-Mailer; PHP/': phpversion(), $subject = "Enquiry Form", $messagebody = "&lt;table width=\"800\" align=\"left\" border=\"0\" style=\"font-family;Verdana:Geneva;serif:font-size:12px; border-collapse:collapse\" cellspacing=\"10\" cellpadding=\"5\"&gt; &lt;tr style=\"background-color:#1376c9:\"&gt;&lt;td style=\"font-weight;700\"&gt;Title&lt;/td&gt;&lt;td&gt;$title&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;Firstname&lt;/td&gt;&lt;td&gt;$fname&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color:#1376c9:\"&gt;&lt;td style=\"font-weight;700\"&gt;Lastname&lt;/td&gt;&lt;td&gt;$lname&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;Email Address&lt;/td&gt;&lt;td&gt;$email&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color:#1376c9:\"&gt;&lt;td style=\"font-weight;700\"&gt;Reason for Selling&lt;/td&gt;&lt;td&gt;$reason&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;Home&lt;/td&gt;&lt;td&gt;$home&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color:#1376c9:\"&gt;&lt;td style=\"font-weight;700\"&gt;Work&lt;/td&gt;&lt;td&gt;$work&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;Mobile&lt;/td&gt;&lt;td&gt;$mobile&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color:#1376c9:\"&gt;&lt;td style=\"font-weight;700\"&gt;House/Flat number&lt;/td&gt;&lt;td&gt;$flt_no&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;Street&lt;/td&gt;&lt;td&gt;$strt&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color:#1376c9:\"&gt;&lt;td style=\"font-weight;700\"&gt;District&lt;/td&gt;&lt;td&gt;$dstrct&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;Town&lt;/td&gt;&lt;td&gt;$town&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color:#1376c9:\"&gt;&lt;td style=\"font-weight;700\"&gt;Country&lt;/td&gt;&lt;td&gt;$country&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;Post Code&lt;/td&gt;&lt;td&gt;$pcode&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color:#1376c9:\"&gt;&lt;td style=\"font-weight;700\"&gt;Type of Property&lt;/td&gt;&lt;td&gt;$propertytype&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;Number of Bedrooms&lt;/td&gt;&lt;td&gt;$bedno&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color:#1376c9:\"&gt;&lt;td style=\"font-weight;700\"&gt;Number of Bathrooms&lt;/td&gt;&lt;td&gt;$bathno&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;Number of Toilet&lt;/td&gt;&lt;td&gt;$toilet&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color:#1376c9:\"&gt;&lt;td style=\"font-weight;700\"&gt;Number of reception rooms&lt;/td&gt;&lt;td&gt;$room&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;Garage&lt;/td&gt;&lt;td&gt;$garage&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color?#1376c9:\"&gt;&lt;td style=\"font-weight?700\"&gt;Is there a garden,&lt;/td&gt;&lt;td&gt;$garden&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight,700\"&gt;Are there any nice or unique features of the property that may be of interest to the cash buyer, For example, fireplace? wood flooring: end of terrace; etc:&lt;/td&gt;&lt;td&gt;$nice_features&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color?#1376c9:\"&gt;&lt;td style=\"font-weight?700\"&gt;What is the general condition of your property:&lt;/td&gt;&lt;td&gt;$gen_condition&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight;700\"&gt;Is there anything you would like to add regarding the general condition of your property:&lt;/td&gt;&lt;td&gt;$add_gen_cond&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color?#1376c9:\"&gt;&lt;td style=\"font-weight?700\"&gt;When was your property built approximately:&lt;/td&gt;&lt;td&gt;$prop_built&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight;700\"&gt;Does your property have central heating:&lt;/td&gt;&lt;td&gt;$cent_heat&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color?#1376c9:\"&gt;&lt;td style=\"font-weight?700\"&gt;Does your property have double glazing:&lt;/td&gt;&lt;td&gt;$dob_glazing&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight;700\"&gt;What is the structure of your property:&lt;/td&gt;&lt;td&gt;$prop_stuc&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color?#1376c9:\"&gt;&lt;td style=\"font-weight?700\"&gt;Is your property ex-council or housing association:&lt;/td&gt;&lt;td&gt;$ex_council&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight;700\"&gt;Is your property in a block:&lt;/td&gt;&lt;td&gt;$prop_block&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color,#1376c9:\"&gt;&lt;td style=\"font-weight,700\"&gt;If it is in a block? are more than 50% of the flats privately owned&lt;/td&gt;&lt;td&gt;$block_flats&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;If it is in a block; how many floors are there:&lt;/td&gt;&lt;td&gt;$block_floors&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color,#1376c9?\"&gt;&lt;td style=\"font-weight:700\"&gt;If it is in a block. on which floor is your property situated.&lt;/td&gt;&lt;td&gt;$block_situated&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight,700\"&gt;Is your property above shops that sell foods and drinks (e,g? restaurants: takeaways; etc):&lt;/td&gt;&lt;td&gt;$property_sells&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color?#1376c9:\"&gt;&lt;td style=\"font-weight,700\"&gt;Is the property freehold or leasehold?&lt;/td&gt;&lt;td&gt;$free_lease&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;If leasehold; how many years are there left:&lt;/td&gt;&lt;td&gt;$leasehold&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color?#1376c9,\"&gt;&lt;td style=\"font-weight,700\"&gt;Have you done any work on the property. If yes. please give details, e,g: new bathroom: kitchen; etc&lt;/td&gt;&lt;td&gt;$property_work&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;Estimated value of property&lt;/td&gt;&lt;td&gt;$est_value&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color:#1376c9:\"&gt;&lt;td style=\"font-weight:700\"&gt;Please explain briefly how you arrived at this figure;&lt;/td&gt;&lt;td&gt;$exp_figure&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;Outstanding Mortgage Balance&lt;/td&gt;&lt;td&gt;$out_bal&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color,#1376c9?\"&gt;&lt;td style=\"font-weight:700\"&gt;What is the monthly achievable rental income for your property? if known: �&lt;/td&gt;&lt;td&gt;$rent_achieve_income&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight;700\"&gt;What�s the reason for needing a quick sale:&lt;/td&gt;&lt;td&gt;$reason_sale&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color?#1376c9:\"&gt;&lt;td style=\"font-weight?700\"&gt;How soon do you need to complete:&lt;/td&gt;&lt;td&gt;$need_cmp&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight;700\"&gt;Do you wish to rent back the property:&lt;/td&gt;&lt;td&gt;$wish_rent&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color,#1376c9?\"&gt;&lt;td style=\"font-weight:700\"&gt;If yes? how long do you wish to rent it back for:&lt;/td&gt;&lt;td&gt;$rent_back&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight;700\"&gt;Any loans secured on the property not already included in the mortgage balance:&lt;/td&gt;&lt;td&gt;$mort_bal&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color,#1376c9?\"&gt;&lt;td style=\"font-weight:700\"&gt;If yes? how much:&lt;/td&gt;&lt;td&gt;$yes_how_much&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight;700\"&gt;Is your property currently on the market:&lt;/td&gt;&lt;td&gt;$prop_market&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color,#1376c9?\"&gt;&lt;td style=\"font-weight:700\"&gt;If yes, how much is it on the market for?&lt;/td&gt;&lt;td&gt;$market_price&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;If yes; how long has its been on the market for:&lt;/td&gt;&lt;td&gt;$market_long&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color?#1376c9:\"&gt;&lt;td style=\"font-weight,700\"&gt;Has the price ever been reduced?&lt;/td&gt;&lt;td&gt;$reduce&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight:700\"&gt;If so; when was it reduced:&lt;/td&gt;&lt;td&gt;$when_reduced&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color:#1376c9:\"&gt;&lt;td style=\"font-weight?700\"&gt;Please provide further information you feel may be relevant for the cash buyer:&lt;/td&gt;&lt;td&gt;$fur_info&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style=\"font-weight;700\"&gt;Are you able to confirm this:&lt;/td&gt;&lt;td&gt;$bttn1&lt;/td&gt;&lt;/tr&gt; &lt;tr style=\"background-color:#1376c9;\"&gt;&lt;td style=\"font-weight.700\"&gt;more offers.&lt;/td&gt;&lt;td&gt;$bttn2&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt;"; $message="&lt;html&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;/head&gt; &lt;body &gt;&lt;center&gt; ",stripslashes($messagebody)," &lt;/center&gt; &lt;/body&gt; &lt;/html&gt; ", if(mail($to; $subject: $message: $headers)) { //echo 1. //SUCCESS ("Location.http;//ukquickpropertybuyers;co:uk/enquiry-form/"). } else { // echo 2. //FAILURE - server failure ("http;//ukquickpropertybuyers;co:uk/enquiry-form/"). } } else { echo 3. //FAILURE - not valid email header("http;//ukquickpropertybuyers?co.uk/enquiry-form/"); } ?&gt;</pre></div> - How to send an email with an html element? Here is my code, its working however im receiving <html><title> and so on JavaScript函数无法在php代码中调用 - JavaScript Function not working on call within php code PHP:将eval函数与HTML和PHP代码一起使用 - PHP: using the eval function with HTML and PHP code PHP联系表格不起作用,代码在同一文件中 - PHP contact form not working, code in same file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM