data 0 Posted July 18, 2012 Report Share Posted July 18, 2012 Hey there! Very new to uBot and have a question (search bar doesn't seem to be giving me anything) I have a file with a bunch of name that are appended by seperate lines. I want to import each name, one line at a time, into a site in the uBot browser. Could anyone help? Thanks! Quote Link to post Share on other sites
JohnB 255 Posted July 18, 2012 Report Share Posted July 18, 2012 Sure...is this a text file that you are trying to load into a single form field on a site? John Quote Link to post Share on other sites
data 0 Posted July 18, 2012 Author Report Share Posted July 18, 2012 Sure...is this a text file that you are trying to load into a single form field on a site? JohnYes, sir Quote Link to post Share on other sites
JohnB 255 Posted July 18, 2012 Report Share Posted July 18, 2012 Cool. The easiest way is to right click on the form field, choose "change attribute" (select "value" from the dropdown) and then use the $read file constant as the content. John Quote Link to post Share on other sites
data 0 Posted July 18, 2012 Author Report Share Posted July 18, 2012 Cool. The easiest way is to right click on the form field, choose "change attribute" (select "value" from the dropdown) and then use the $read file constant as the content. JohnI figured it was something like this, but I need it to add one name at a time and then hit a submit button. When doing what you said above, it added the entire text document into the single form. Quote Link to post Share on other sites
JohnB 255 Posted July 18, 2012 Report Share Posted July 18, 2012 Ok, I read it as adding them all...no problem... You need to use: Add list to list, $list from file to create the list of names You can then loop through the list and choose $next list item as the content Does that make sense? John Quote Link to post Share on other sites
data 0 Posted July 18, 2012 Author Report Share Posted July 18, 2012 Something like this? When I do this, it starts at the top of the file, then goes down one and keeps entering the 2nd entry over and over. Quote Link to post Share on other sites
data 0 Posted July 18, 2012 Author Report Share Posted July 18, 2012 I guess my image didn't attach...here we go. Quote Link to post Share on other sites
JohnB 255 Posted July 18, 2012 Report Share Posted July 18, 2012 Make sure you have a clear list in there at the beginning of the script. Everything else looks good. John Quote Link to post Share on other sites
data 0 Posted July 18, 2012 Author Report Share Posted July 18, 2012 Make sure you have a clear list in there at the beginning of the script. Everything else looks good. JohnI tried adding clear list at the beginning of the loop and outside the loop, but it keeps just adding the first record over and over. Quote Link to post Share on other sites
data 0 Posted July 19, 2012 Author Report Share Posted July 19, 2012 Can anyone help me out please? Quote Link to post Share on other sites
blumi40 222 Posted July 19, 2012 Report Share Posted July 19, 2012 show the site post your ubot filethen we can help u what u did in your image is correct and should work normaly Quote Link to post Share on other sites
data 0 Posted July 19, 2012 Author Report Share Posted July 19, 2012 I'm trying to import emails into PHPList. You can look at their demo here: http://demo.phplist.com/lists/admin/?page=members&id=2 Username is admin password is phplist. Quote Link to post Share on other sites
blumi40 222 Posted July 19, 2012 Report Share Posted July 19, 2012 <input type="text" name="login" value="" size="30"><input type="password" name="password" value="" size="30"> your type text element in your pic names "new" do not exists name="login" & name="password" is the magic Quote Link to post Share on other sites
data 0 Posted July 19, 2012 Author Report Share Posted July 19, 2012 <input type="text" name="login" value="" size="30"><input type="password" name="password" value="" size="30"> your type text element in your pic names "new" do not exists name="login" & name="password" is the magic You must login first. The username is admin, the password is phplist. Once you login, navigate to lists tab, and add a new user. I have a list of emails I'm trying to add to a list on phplist. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.