Recommended Posts

OK timdorr...

I'm not sure if anyone else is using this yet or not, but maybe something we could put in here to make things a little bit easier...

Could we put begin and end character strings to signify begin of data and end of data. I'm just trying to recommend a standardized mechanism. It's currently possible to get the data, but it would be really easy if we can look for certain characters or delimiters so to speak.

Hmm...Just something that could/would be consistent.

I am. The character is a newline.

I am. The character is a newline.

Well....yeah. Let me rephrase...

Given The following lines:

<strong>Username:</strong> userA<br />\n

<strong>E-mail:</strong> [email protected]<br />\n

What I was trying to ask was delimiting it so you could parse the labels (Username and Email)

and then parse the data userA and [email protected]

But it's already delimited enough I guess. An XML format would be cool, but this will work well also. You just have to parse through the strings. No big deal. :D

OK Timdorr, can you add a whitespace in between the last character of an item and the <br />?

Like change

<strong>Username:</strong> userA<br />\n

to

<strong>Username:</strong> userA <br />\n

If you can do that, then you can use this Regular Expression to match the Label and Data Elements.

&lt;strong&gt;(?&lt;label&gt;\w*\s*\W*\S*)&lt;/strong&gt;(?&lt;data&gt;\w*\s*\W*\S*)

HAHAHAHAHAHAHA......

Sorry Timdorr. I was looking at what Sietse was displaying....you already have it delimited with carriage returns... I just now got the return from you.

Sorry for the confusion....

:argh:

Actually would I be able to get the complete user group list? Like whenever I login with the link above, it gives my user group as "@ Subscrib". It would just simplify things on my end, because I'm going to have the user group in the profiles at Neomap.

chorpeac, I should add you to my MSN list.

Sorry, bout I think neowin's login form looks a bit ugly. Are we allowed to use our own external forms to process the login.

ie:

&lt;form action="https://www.neowin.net/login/?url=http://www.sitename.com/login.php" method="post"&gt;
&lt;input type="hidden" name="action" value="do_login"&gt;

&lt;table cellspacing="0" cellpadding="5" border="0"&gt;
	&lt;tr&gt;
  &lt;td&gt;Username:&lt;/td&gt;
  &lt;td&gt;&lt;input type="text" name="username" size="30"&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
  &lt;td&gt;Password:&lt;/td&gt;
  &lt;td&gt;&lt;input type="password" name="password" size="30"&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
  &lt;td colspan="2" align="center"&gt;&lt;input type="submit" value="login"&gt;&lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;
&lt;/form&gt;

Ah well, you know even if that did work, you wouldn't know if the username and password combination was accepted/correct or not.

Actually I managed to get it working on my webserver.

Ah well, you know even if that did work, you wouldn't know if the username and password combination was accepted/correct or not.

Errr.. I don't mean to be rude or anything but do you know what you're talking about?

Of course it would work. I've tested it and it does work. There's no reason why it shouldn't. I'm just after permission that we CAN use it as it may appear malicious.

Anyways, nice work people.

I've got that itchy feeling that this time next month we'll have a hugely complicated protocol up and running (Y).

Errr.. I don't mean to be rude or anything but do you know what you're talking about?

Of course it would work. I've tested it and it does work. There's no reason why it shouldn't. I'm just after permission that we CAN use it as it may appear malicious.

Well, I have never posted data to another site through a form like that. I'm using the thing right now, and I see how it works. I'm just curious how this method handles an invalid login. What happens? Does it return a false or something? If the login is accepted do you still get to access the returned values?

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.