W
Wen
Hallo,
I have 2 asp pages. I'd declared phoneNumbers as Array in page1, the value
of this array must be used in page2 again.
Does somebody know wat should I do?
Thanks In Advance,
Wen
<%Option Explicit%>
<html>
<head>
<title>phonebook</title>
</head>
<!-- -->
<body>
<%
Dim Name(3), PhoneNum(3), EAd(3)
Dim i, objPhone
Name(1) = "Leo"
Name(2) = "Anton"
Name(3) = "Annette"
PhoneNum(1) = "038-4989838"
PhoneNum(2) = "038-4893545"
PhoneNum(3) = "065-0080007"
EAd(1) = "(e-mail address removed)"
EAd(2) = "(e-mail address removed)"
EAd(3) = "(e-mail address removed)"
For i = 1 To 3
%>
<form action="index.asp" target="_blank">
Name: <input type="text" value="<% = Name(i)%>">
<input type ="image" name= "<% = PhoneNum(i)%>" src ="call.jpg" width
="25" length="25", alt="call"> :
<input type="text" value="<% = PhoneNum(i)%>">
Email:<input type="text" value="<% = EAd(i)%>">
</form>
<%
Next
%>
</body>
</html>
----------------------------------------------------------------------------
-------------------
<html>
<head>
<!-- index.asp-->
<title>Function PlaceCall set objPhone</title>
</head>
<body>
<%
Function PlaceCall()
Dim D
D = request.form ("PhoneNum(" & i &")")
Response.write D //to test D, but it doenst work.
set objPhone =Server.createObject("mytelephone.telephone")
response.write "Calling "& D & " ...."
objPhone.PlaceCall(D)
if objPhone.IsConnected then
Response.write " The phone is connected"
else
Response.write " The phone isn't connected"
end if
Set objPhone = nothing
End function
call placeCall
%>
</body>
</html>
I have 2 asp pages. I'd declared phoneNumbers as Array in page1, the value
of this array must be used in page2 again.
Does somebody know wat should I do?
Thanks In Advance,
Wen
<%Option Explicit%>
<html>
<head>
<title>phonebook</title>
</head>
<!-- -->
<body>
<%
Dim Name(3), PhoneNum(3), EAd(3)
Dim i, objPhone
Name(1) = "Leo"
Name(2) = "Anton"
Name(3) = "Annette"
PhoneNum(1) = "038-4989838"
PhoneNum(2) = "038-4893545"
PhoneNum(3) = "065-0080007"
EAd(1) = "(e-mail address removed)"
EAd(2) = "(e-mail address removed)"
EAd(3) = "(e-mail address removed)"
For i = 1 To 3
%>
<form action="index.asp" target="_blank">
Name: <input type="text" value="<% = Name(i)%>">
<input type ="image" name= "<% = PhoneNum(i)%>" src ="call.jpg" width
="25" length="25", alt="call"> :
<input type="text" value="<% = PhoneNum(i)%>">
Email:<input type="text" value="<% = EAd(i)%>">
</form>
<%
Next
%>
</body>
</html>
----------------------------------------------------------------------------
-------------------
<html>
<head>
<!-- index.asp-->
<title>Function PlaceCall set objPhone</title>
</head>
<body>
<%
Function PlaceCall()
Dim D
D = request.form ("PhoneNum(" & i &")")
Response.write D //to test D, but it doenst work.
set objPhone =Server.createObject("mytelephone.telephone")
response.write "Calling "& D & " ...."
objPhone.PlaceCall(D)
if objPhone.IsConnected then
Response.write " The phone is connected"
else
Response.write " The phone isn't connected"
end if
Set objPhone = nothing
End function
call placeCall
%>
</body>
</html>