开发者

PHP form with two <select> variable passing as one

开发者 https://www.devze.com 2023-03-02 13:37 出处:网络
i have a form, say a.php, with <select 1>var1...</select> <select 2>var开发者_Python百科2...</select>

i have a form, say a.php, with

<select 1>var1...</select>
<select 2>var开发者_Python百科2...</select>

for some reason, i really want to pass those two variables as just one as

a.php?a=var1_var2

i don't know how to make it work.

thanks a lot.


Just pass them individually and later concatenate to your desired valued.

<?php
var a = $_GET["var1"].$_GET["var2"];
?>

and call as:

a.php?var1=val1&var2=val2
0

精彩评论

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