|go ahead... be a heretic|
Open file and formfillby fame (Initiate)
|on Apr 26, 2012 at 02:26 UTC||Need Help??|
fame has asked for the
wisdom of the Perl Monks concerning the following question:
I have a question.. I have perl bot thats uses IRC. One of the functions that I have it do upon a command is it opens a file with random emails and fills the form on a website.
This is how I have it read the file and select a random line.
This is how I have it form fill.
My problem is this: When it fills the form, it fills in the email address and the return html coding will look something like this:
name="email" id="email" value="email@example.com
" size="35" maxlength="255" class="formFld" />
The email address is entered within the " " and then for some reason jumps to a next line like above. I need it for when it fills the form that it stays all on the same line within the " ". Example:
name="email" id="email" value="firstname.lastname@example.org" size="35" maxlength="255" class="formFld" />
Does anyone have a solution for me? Any help would be GREATLY appreciated. Thanks