我目前正在为我的FIRST机器人团队重写网站,因为它是在GoogleSite上完成的,很快就完成了。我以前有HTML,CSS,Java,Javascript和SQL(MySQL和MS SQL)方面的知识。我有一个表单,现在需要从该表单中获取数据并将其保存为变量以上传到我的数据库表。
Sub CDO_Mail_Small_Text()
Dim iMsg As Object
Dim iConf As Object
Dim strbody As String
Dim Flds As Variant
Set iMsg = CreateObject("CDO.Message")
Set iConf = CreateObject("CDO.Configuration")
iConf.Load -1 ' CDO Source Defaults
Set Flds = iConf.Fields
With Flds
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.gmail.com"
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 465 '587 '465 '25
.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'cdoBasic
.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "xyz@gmail.com"
.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "123456"
.Update
End With
strbody = "Hi there" & vbNewLine & vbNewLine & _
"This is line 1" & vbNewLine & _
"This is line 2" & vbNewLine & _
"This is line 3" & vbNewLine & _
"This is line 4"
With iMsg
Set .Configuration = iConf
.To = "charlie@gmail.com"
.CC = ""
.BCC = ""
.From = "xyz@gmail.com"
.Subject = "New figures"
.TextBody = strbody
.Send
End With
End Sub
我在java中也有这个:
org.openqa.selenium.WebDriverException: undefined status object
query()方法已经将查询上传到MySQL并将其添加到表中。回到这个问题,我如何从我的java项目中将站点中的数据保存为变量?没有PHP可以吗?