开发者

Results page in other window

开发者 https://www.devze.com 2022-12-31 13:12 出处:网络
I have this simple form: <form method="post" action"."> <input type="text" name="title"&开发者_如何学Pythongt;

I have this simple form:

<form method="post" action".">
<input type="text" name="title"&开发者_如何学Pythongt;
<input type="submit" name"send">
</form>

I want that when a user click on submit, then will be open another window of browser with the results. Is it possible?


If you just need to open a new window:

<form method="post" action="..." target="_blank">
...

If you want a popup or lightbox or anything scripty:

<form method="post" action="..." onsubmit="yourFunction()">


Use this

<form method="post" action"thepagetodisplay.php">
<input type="text" name="title" id="title">
<input type="submit" name"send">
</form>

on thepagetodisplay.php

extract($_POST);
echo $title;
0

精彩评论

暂无评论...
验证码 换一张
取 消