Hallo epvps
ich habe da mal wieder ein problem folgender maßen ich möchte gerne mir ein Formular ausfüllen lassen das hat folgende felder
-Benutzername
-Passwort
-vorname
-nachname
-Alter(combobox nicht so wichtig)
-Frau/Mann(combobox nicht so wichtig
-email
-Captcha
1.frage der Capcha steht im quellcode als Value="" drinne
ich Makiere mit der maus das bild(capcha) rechtsklick aus quellcode rauskopieren
geht das nicht mit einer _ie fuktion ihn auslesen und rauskopieren dann in ein iputbox einfügen?
2.wie rufe ich mit einer _ie Funktion Unterkategorisierter(schweres wort)
auf
3. Warum bekomme ich solche fehler obwohl der code doch correct sein müsste
PHP Code:
$Benutzername = IniRead("Reg.ini", "User" ,"Benutzername", "") ;
$Passwort = IniRead("Reg.ini", "pass", "Passwort", "") ;
$Last = IniRead("Reg.ini", "Last" ,"nachname", "") ;
$First = IniRead("Reg.ini", "First", "vorname", "") ;
$Email = IniRead("Reg.ini", "Email" ,"email", "")
$oIE = _IECreate($reflink)
$Colluser = _IEFormElementGetCollection($oIE,0)
$Objuser = _IEFormElementGetObjByName($Colluser,"UserName")
_IEAction($Objuser,"focus")
send($Benutzername)
$CollPass = _IEFormElementGetCollection($oIE,1)
$ObjPass = _IEFormElementGetObjByName($CollPass,"Password")
_IEAction($ObjPass,"focus")
send($Passwort)
$Collfirst = _IEFormElementGetCollection($oIE,2)
$Objfirst = _IEFormElementGetObjByName($Collfirst," FirstName")
_IEAction($Objfirst,"focus")
send($First)
$Colllast = _IEFormElementGetCollection($oIE,3)
$Objlast = _IEFormElementGetObjByName($Colllast,"LastName")
_IEAction($Objlast,"focus")
send($Last)
$Collemail = _IEFormElementGetCollection($oIE,6)
$Objemail = _IEFormElementGetObjByName($Collemail,"EmailAddress")
_IEAction($Objemail,"focus")
send($Email)
bis zum seiten aufruf funktioniert es doch ich möchte gerne erst die seite und dann
PHP Code:
adduser_process.cfm
link aufrufen
Fehlermeldung
PHP Code:
--> IE.au3 Error from function _IEFormElementGetCollection, $_IEStatus_InvalidObjectType
--> IE.au3 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType
--> IE.au3 Error from function _IEAction, $_IEStatus_InvalidDataType
--> IE.au3 Error from function _IEFormElementGetCollection, $_IEStatus_InvalidObjectType
--> IE.au3 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType
--> IE.au3 Error from function _IEAction, $_IEStatus_InvalidDataType
--> IE.au3 Error from function _IEFormElementGetCollection, $_IEStatus_InvalidObjectType
--> IE.au3 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType
--> IE.au3 Error from function _IEAction, $_IEStatus_InvalidDataType
--> IE.au3 Error from function _IEFormElementGetCollection, $_IEStatus_InvalidObjectType
--> IE.au3 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType
--> IE.au3 Error from function _IEAction, $_IEStatus_InvalidDataType
--> IE.au3 Error from function _IEFormElementGetCollection, $_IEStatus_InvalidObjectType
--> IE.au3 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType
--> IE.au3 Error from function _IEAction, $_IEStatus_InvalidDataType
Quelltext der seite
HTML Code:
<script language="JavaScript" fptype="dynamicanimation">
<!--
function dynAnimation() {}
function clickSwapImg() {}
//-->
</script>
<script language="JavaScript1.2" fptype="dynamicanimation" src="animate.js">
</script>
<script language="JavaScript">
<!--
function FP_swapImg() {//v1.0
var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
elm.$src=elm.src; elm.src=args[n+1]; } }
}
function FP_preloadImgs() {//v1.0
var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}
function FP_getObjectByID(id,o) {//v1.0
var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
return null;
}
function FP_swapImgRestore() {//v1.0
var doc=document,i; if(doc.$imgSwaps) { for(i=0;i<doc.$imgSwaps.length;i++) {
var elm=doc.$imgSwaps[i]; if(elm) { elm.src=elm.$src; elm.$src=null; } }
doc.$imgSwaps=null; }
}
// -->
</script>
<script type="text/javascript">
<!--
_CF_checkCFForm_1 = function(_CF_this)
{
//reset on submit
_CF_error_exists = false;
_CF_error_messages = new Array();
_CF_error_fields = new Object();
_CF_FirstErrorField = null;
//display error messages and return success
if( _CF_error_exists )
{
if( _CF_error_messages.length > 0 )
{
// show alert() message
_CF_onErrorAlert(_CF_error_messages);
// set focus to first form error, if the field supports js focus().
if( _CF_this[_CF_FirstErrorField].type == "text" )
{ _CF_this[_CF_FirstErrorField].focus(); }
}
return false;
}else {
return true;
}
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" onLoad="FP_preloadImgs(/*url*/'Pictures/home4Selected.jpg', /*url*/'Pictures/Login4Selected.jpg', /*url*/'Pictures/CreateAFreeAccount4Selected.jpg'); dynAnimation()" language="Javascript1.2">
<center>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-left-width: 0; border-right-width: 0; border-top-width: 0" bordercolor="#111111" width="872" height="445">
<tr>
<td style="border-style: none; border-width: medium" height="22" width="872">
<p align="center">
<img border="0" src="Pictures/Top.jpg" width="501" height="100"></td>
</tr>
<tr>
<td style="border-right:1px solid #111111; border-left-style: solid; border-left-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1" height="42" width="872">
<a href="HomeMain.cfm">
<img border="0" src="Pictures/home4.jpg" width="130" height="42" id="img1" onMouseOut="FP_swapImgRestore()" onMouseOver="FP_swapImg(1,1,/*id*/'img1',/*url*/'Pictures/home4Selected.jpg')"></a><a onMouseOver="document['fpAnimswapImgFP1'].imgRolln=document['fpAnimswapImgFP1'].src;document['fpAnimswapImgFP1'].src=document['fpAnimswapImgFP1'].lowsrc;" onMouseOut="document['fpAnimswapImgFP1'].src=document['fpAnimswapImgFP1'].imgRolln" href="FAQHomeMain.cfm"><img border="0" src="Pictures/FAQ4.jpg" id="fpAnimswapImgFP1" name="fpAnimswapImgFP1" dynamicanimation="fpAnimswapImgFP1" lowsrc="Pictures/FAQ4Selected.jpg" width="130" height="42"></a><a onMouseOver="document['fpAnimswapImgFP2'].imgRolln=document['fpAnimswapImgFP2'].src;document['fpAnimswapImgFP2'].src=document['fpAnimswapImgFP2'].lowsrc;" onMouseOut="document['fpAnimswapImgFP2'].src=document['fpAnimswapImgFP2'].imgRolln" href="ContactHomeMain.cfm"><img border="0" src="Pictures/Contact4.jpg" id="fpAnimswapImgFP2" name="fpAnimswapImgFP2" dynamicanimation="fpAnimswapImgFP2" lowsrc="Pictures/Contact4Selected.jpg" width="130" height="42"></a><a href="Login.cfm"><img border="0" src="Pictures/Login4.jpg" width="130" height="42" id="img2" onMouseOut="FP_swapImgRestore()" onMouseOver="FP_swapImg(1,1,/*id*/'img2',/*url*/'Pictures/Login4Selected.jpg')"></a><a href="adduser.cfm"><img border="0" src="Pictures/CreateAFreeAccount4Selected.jpg" width="350" height="42" id="img3" onMouseOut="FP_swapImgRestore()" onMouseOver="FP_swapImg(1,1,/*id*/'img3',/*url*/'Pictures/CreateAFreeAccount4Selected.jpg')"></a></td>
</tr>
<tr>
<td width="870" height="304" style="border-right:1px solid #111111; border-left-color: #111111; border-left-width: 1" bgcolor="#009933">
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" bgcolor="#339933" height="100%">
<tr>
<td>
<font face="Verdana">
</font>
<center>
<form name="CFForm_1" id="CFForm_1" action="adduser_process.cfm" method="POST" onsubmit="return _CF_checkCFForm_1(this)">
<br>
<table width="537" height="358" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" style="border-collapse: collapse; border-left-width:0px; border-right-width:0px; border-top-width:0px">
<tr>
<td align="center" width="537" height="37" bgcolor="#FFFF00" colspan="2" style="border-style: none; border-width: medium">
<b><font face="Verdana" size="2">Please Create Your Free Account</font></b></td>
</tr>
<tr>
<td align="right" width="279" height="37" bgcolor="#33CC33" style="border-left-color: #111111; border-left-width: 1px; border-top-style: solid; border-top-width: 1px">
<b>
<font face="Verdana" size="2">UserName: </font></b></td>
<td align="center" width="255" height="37" bgcolor="#33CC33" style="border-right-color: #111111; border-right-width: 1px; border-top-style: solid; border-top-width: 1px">
<font face="Times New Roman">
<b>
<font face="Verdana">
<input name="UserName" id="UserName" type="text" style="float: left" size="24" /></font></b></font></td>
</tr>
<tr>
<td align="right" width="279" height="43" bgcolor="#33CC33" style="border-left-color: #111111; border-left-width: 1px">
<b>
<font face="Verdana" size="2"> <span style="background-color: #FFFF00">*Must be 7-15 characters</span>
Password: </font></b></td>
<td align="center" width="255" height="43" bgcolor="#33CC33" style="border-right-color: #111111; border-right-width: 1px">
<b><font face="Verdana">
<input name="Password" id="Password" type="password" style="float: left" size="24" />
</font>
</b>
</td>
</tr>
<tr>
<td align="right" width="279" height="48" bgcolor="#33CC33" style="border-left-color: #111111; border-left-width: 1px">
<b>
<font face="Verdana" size="2">First Name: </font></b></td>
<td align="center" width="255" height="48" bgcolor="#33CC33" style="border-right-color: #111111; border-right-width: 1px">
<font face="Times New Roman">
<b>
<font face="Verdana">
<input name="FirstName" id="FirstName" type="text" style="float: left" size="24" /></font></b></font></td>
</tr>
<tr>
<td align="right" width="279" height="45" bgcolor="#33CC33" style="border-left-color: #111111; border-left-width: 1px">
<b>
<font face="Verdana" size="2">Last Name: </font></b></td>
<td align="center" width="255" height="45" bgcolor="#33CC33" style="border-right-color: #111111; border-right-width: 1px"><font face="Times New Roman">
<b><font face="Verdana">
<input name="LastName" id="LastName" type="text" style="float: left" size="24" /></font></b></font></td>
</tr>
<tr>
<td align="right" width="279" height="38" bgcolor="#33CC33" style="border-left-color: #111111; border-left-width: 1px">
<b>
<font face="Verdana" size="2">Gender: </font></b></td>
<td align="center" width="255" height="38" bgcolor="#33CC33" style="border-right-color: #111111; border-right-width: 1px">
<p align="left">
<b>
<font face="Verdana">
<SELECT size = "1" NAME="Gender">
<OPTION VALUE="Male">Male</OPTION>
<OPTION VALUE="Female">Female</OPTION>
</SELECT>
</font>
</b></td>
</tr>
<tr>
<td align="right" width="279" height="38" bgcolor="#33CC33" style="border-left-color: #111111; border-left-width: 1px">
<b><font face="Verdana" size="2">Age: </font></b></td>
<td align="center" width="255" height="38" bgcolor="#33CC33" style="border-right-color: #111111; border-right-width: 1px">
<p align="left">
<font face="Times New Roman">
<b>
<font face="Verdana">
<SELECT size = "1" NAME="Age">
<OPTION VALUE="18-24">18-24</OPTION>
<OPTION VALUE="25-34">25-34</OPTION>
<OPTION VALUE="35-49">35-49</OPTION>
<OPTION VALUE="50-64">50-64</OPTION>
<OPTION VALUE="65up">65+</OPTION>
</SELECT></font></b></font></td>
</tr>
<tr>
<td align="right" width="279" height="38" bgcolor="#33CC33" style="border-left-color: #111111; border-left-width: 1px">
<b>
<font face="Verdana" size="2">Email Address: </font></b></td>
<td align="center" width="255" height="38" bgcolor="#33CC33" style="border-right-color: #111111; border-right-width: 1px">
<font face="Times New Roman">
<b>
<font face="Verdana">
<input name="EmailAddress" id="EmailAddress" type="text" style="float: left" size="32" /></font></b></font></td>
</tr>
<tr>
<td align="center" width="535" colspan="2" height="51" bgcolor="#33CC33" style="border-left-color: #111111; border-left-width: 1px; border-right-color: #111111; border-right-width: 1px">
<font face="Verdana" size="2">
<span style="background-color: #FFFF00">*Please provide a valid Email
address, your Login information will be sent to it. We will never give
out your Email Address or other personal information.</span></font></td>
</tr>
<tr>
<td align="center" width="535" colspan="2" height="51" bgcolor="#33CC33" style="border-left-color: #111111; border-left-width: 1px; border-right-color: #111111; border-right-width: 1px">
<p>
<b><font face="Verdana" size="2">By Typing in the image code below
you are Agreeing to our <a href="Terms.cfm" target ="blank">T.O.S</a></font></b></p>
<p>
<img src="/CFFileServlet/_cf_captcha/_captcha_img-2896426953621905740.png" align="middle" alt="" height="40" width="135" />
<input name="NumberAbove" id="NumberAbove" type="hidden" value="fczay" />
<font face="Verdana"><input type="text" name="NumberBelow" size="20">
</font>
<p><font face="Verdana"><font size="2" color="#FFFF00">One account per household or IP address, your IP address is</font>
<font size="2">78.51.71.33</font></font></td>
</tr>
<tr>
<td align="center" width="535" colspan="2" height="51" bgcolor="#33CC33" style="border-left-color: #111111; border-left-width: 1px; border-right-color: #111111; border-right-width: 1px">
<font face="Times New Roman">
<b>
<font face="Verdana">
<input name="B1" id="B1" type="submit" value="Create Free Account" /></font></b></font></td>
</tr>
</table>
</center>
</div>
<p align="center">
<font face="Verdana"> </font></p>
</form>
<p align="center"> </td>
</tr>
</table>
</center>
</div>
</body>
</html>
Ich hoffe ihr habt alle infos und könnt mir helfen