传递参数的问题 [英] problem in passing argument
本文介绍了传递参数的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
HI再次,
好的,现在我有一个页面pictures.php
我正在使用以下代码:
[PHP] printf("< a href = \" pictures.php?name =%s \">",urlencode($ val [0]));
print("< img src = \" $ val [0] \" width = 100%)/>< / a>"); [/ PHP]
问题是没有值存储在pictures中的$ name.php
当我打印$ name时我什么也得不到。
需要帮助。
谢谢
HI again,
OK, now I have a page pictures.php
and I am using following code :
[PHP]printf("<a href=\"pictures.php?name=%s\">",urlencode($val[0]));
print ("<img src=\"$val[0]\" width=100%)/></a>");[/PHP]
the problem is no value is stored in $name in pictures.php
I don''t get anything when i print $name.
Need a help.
Thanks
推荐答案
val [0]));
print("< img src = \"
val[0]));
print ("<img src=\"
val [0] \" width = 100%)/>< / a>" ); [/ PHP]
问题是没有值存储在
val[0]\" width=100%)/></a>");[/PHP]
the problem is no value is stored in
中
在pictures.php中的名称
我打印时没有得到任何东西
name in pictures.php
I don''t get anything when i print
这篇关于传递参数的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文