通过web上的链接访问php文件
我创建了一个非常简单的html页面。下面是html文件的代码通过web上的链接访问php文件,php,html,Php,Html,我创建了一个非常简单的html页面。下面是html文件的代码 <html> <head> <title>Client Login</title> </head> <body> <form method="post" action="Sign up.php"> <table width='400' cellpadding='10'
<html>
<head>
<title>Client Login</title>
</head>
<body>
<form method="post" action="Sign up.php">
<table width='400' cellpadding='10' cellspacing='1' align='left' style='margin:186 90' border='0'>
<td><font size="3" face="arial, helvetica">Don't have an account? Please register
<td><font size="3" face="arial, helvetica"><input type='submit' name='signup' value='Sign Up'/>
</table>
</form>
</body>
</html>
客户端登录
你没有账户吗?请登记
此外,如果我在其中添加一些php代码,我会从apache服务器通过wamp运行它
我想问你,如果我想在互联网上加载到一个特定的网址,我怎么做??
例如,打开我的web浏览器并在URL地址处写入:然后显示我的页面
谢谢您可以使用标签或将表单的“操作”属性更改为示例网站
<form action="post" method="http://www.example.com">
或
不使用表格
<a href="http://www.example.com">Sign Up</a>
您应该将html文件上载到web服务器。那是不可能的。简而言之:不你不能按照你建议的方式实现你想做的事情。
首先,你需要拥有所说的域名,并为其托管
如何:
index.html
)
注
我刚注意到你有一个表格可以链接到你的注册页面。为什么不使用
这不是编程问题。但要点是1)获得域名2)获得网络主机3)将文件上载到主机如果你想显示页面,首先你应该将其上载到服务器,并将文件名设置为index.html/index.php。这是服务器要查找的第一个页面。
<html>
<head>
<title>Client Login</title>
</head>
<body>
<form method="post" action="Sign_up.php">
<table width='400' cellpadding='10' cellspacing='1' align='left' style='margin:186 90' border='0'>
<td><font size="3" face="arial, helvetica">Don't have an account? Please register
<td><font size="3" face="arial, helvetica"><input type='submit' name='signup' value='Sign Up'/>
</table>
</form>
</body>
</html>
<?php
if(!empty($_POST)) {
print_r($_POST);
}
?>
<a href="Sign_up.php">Sign Up Now</a>