由买买提看人间百态

topics

全部话题 - 话题: myform
(共0页)
z*y
发帖数: 1311
1
来自主题: BuildingWeb版 - is this possible
How? Could you help check what is wrong with this code? Thanks.


Submit





XYZ, 2010.09.08


s****y
发帖数: 983
2
来自主题: BuildingWeb版 - is this possible
oh,早说阿


Submit





XYZ, 2010.09.08


a****f
发帖数: 29
3
来自主题: BuildingWeb版 - How to add the password to a homepage?




o***s
发帖数: 31
4
php code 如下:

if($_SERVER['REQUEST_METHOD'] == 'POST') {
//print "Response a string";
$dom = new DOMDocument();
$dom->formatOutput = true;
$rootNode = $dom->createElement("myxml");
$dom->appendChild($rootNode);
$subnode = $dom->createElement("subnode");
$subnode->nodeValue = "This is an example";
$rootNode->appendChild($subnode);
header("Content-type: text/xml");
print $dom->saveXML();
} else {
?>

z*y
发帖数: 1311
5
来自主题: BuildingWeb版 - is this possible

你的方法还是不行
有多个hyperlink,每个link的参数不同,但password是一样的,比如


ABC, 2010.09.06
XYZ, 2010.09.08

要求就是点第一个link,程序得到参数:password, ABC, 2010.09.06
点第二个link,程序得到参数:password, XYZ, 2010.09.08
z*y
发帖数: 1311
6
来自主题: BuildingWeb版 - is this possible
thank you, 有个奇怪的现象
alert(x) 显示的是正确的
但送过去的URL里只有password,“.../submit.php?password=xxx”
name和date都消失了
个人感觉那个action的赋值语句没有作用,仍然只送form中的那个input
但如果这个赋值语句没有用,那它怎么知道要去找submit.php呢?
在form里面没有告诉它啊
如果有用,为什么它没有把x全部传过去?
OK,我的结论是action的赋值不能贴参数上去,系统不认
我把它改成
document.forms["myform"].action = "./submit.php?name=XYZ&date=20100908" + x;
仍然只有password
w*****g
发帖数: 1415
7
来自主题: BuildingWeb版 - is this possible

然后使用$_REQUEST[]来接收所有的参数。
z*****n
发帖数: 83
8
来自主题: DotNet版 - A VB Question from a beginner
I want to do something to all textboxes in a form by
the following code (e.g. add 1 to .text)
call mysub(myform)
Private Sub mysub(ByVal myContainer As Object)
Dim myControl As Control
For Each myControl In myContainer.Controls
If TypeOf myControl Is TextBox Then
'do something to mycontrol
ElseIf myControl.HasChildren Then
Call mysub(myControl)
End If
Next
End Sub
now the strange thing is all my numericalupdown controls
are also change
m*****u
发帖数: 19562
9
【 以下文字转载自 Programming 讨论区 】
发信人: meilefu (好好挣钱), 信区: Programming
标 题: An error when calling COM method in Javascript
发信站: BBS 未名空间站 (Tue Jan 30 11:26:18 2007)
I am trying to call a COM method in Javascript
It works fine is IE6, but not in IE 7 and mozilla..
Code is like this
In asp file, I loaded the ActiveX object
VIEWASTEXT>

...

In javascript
document.myForm.aActiveXCtl
(共0页)