【发布时间】:2014-05-19 13:39:23
【问题描述】:
您好,我需要帮助,因为这不起作用: 我只是想打开带有按钮但在搜索框中的网站.....
<html>
<body>
<form>
<input type=button onClick=window.open("action.php","demo","width=550,height=300,left=150,top=200,toolbar=0,status=0,"); value="Öffne">
</form>
<form method="post" action="action.php">Suche: <input name="suche" type="text"><br>
<input type="submit" value="OK">
</form>
</body>
</html>
<php
$user = $_POST['suche'];
$seite = 'www.google.de/#q=';
$ziel=$seite.$user;
<form>
<input type=button onclick="location.href='https://www.google.de/#q=<?php echo $seite; ?>'" value='Website'>
<input type=button onClick="self.close();" value="Close this window">
</form>
【问题讨论】:
-
我没有得到这个问题。您能否更详细地解释一下您想要实现的目标以及到目前为止所做的工作?
-
对不起我的错误解释......我写下了我最近的问题以及到目前为止我所做的事情作为这个主题底部的答案,在此先感谢。 :)