php新手的表单提交问题
-----------------demo.html----------------
百度 google
------------------search.php-----------------
出错提示:
parse error: syntax error, unexpected t_encapsed_and_whitespace, expecting t_string or t_variable or t_num_string
先谢谢各位了。
------解决方案--------------------
header(location:http://www.baidu.com/s?wd={$_get['search']});//百度搜索跳转
或
header(location:http://www.baidu.com/s?wd=$_get[search]);//百度搜索跳转