Forum Topic: Loading a XML with input textbox

(327 views • 22 replies)

New Topic Post Reply

This topic is 1 page long.

<< < > >>
None

adam2510

Reply to Post Reply & Quote

Posted at: 5/29/08 12:24 PM

adam2510 EVIL LEVEL 13

Sign-Up: 10/02/05

Posts: 3,727

ok here is problem 1
i want to load the xml file of the user when the user inputs it

on (release) {
	gotoAndStop(2);
	xml_profile.sendAndLoad(/profiles/+_root.username_txt.text+".xml");
}

i think that is the right code

correct me if i am wrong

problem 2
trying to get the text to check it

hash = calcMD5(thetext);
if (hashed.text == xml_profile.childNodes[2].childNodes[0].nodeValue) {
if (username_txt.text == xml_profile.childNodes[1].childNodes[0].nodeValue) {
	gotoAndStop(3);
}
}

btw just for refrence here is the xml

<profile>
<username>testuser</username>
<password>testpassword</password>
<email>test@test.com.au</email>
</profile>

thankyou if you can help and no stealing XD

Web Hosting: Free! Premium!

BBS Signature

None

GustTheASGuy

Reply to Post Reply & Quote

Posted at: 5/29/08 12:50 PM

GustTheASGuy LIGHT LEVEL 08

Sign-Up: 11/02/05

Posts: 11,430

Mwahahaa I'll steal your brain. It'll make a good doormat.

#ngprogramming at irc.freenode.net
haXe | Keel imperative | Spyro! | Thru you


None

Madminifig

Reply to Post Reply & Quote

Posted at: 5/29/08 01:08 PM

Madminifig DARK LEVEL 14

Sign-Up: 02/15/06

Posts: 650

DON'T USE XML FOR USER SYSTEMS

Not caps...

GOGOGO
madgodzilla@hotmail.co.uk Feel free to add me.


None

GustTheASGuy

Reply to Post Reply & Quote

Posted at: 5/29/08 01:31 PM

GustTheASGuy LIGHT LEVEL 08

Sign-Up: 11/02/05

Posts: 11,430

At 5/29/08 01:08 PM, Madminifig wrote: DON'T USE XML FOR USER SYSTEMS

We kind of devoted a whole thread page to relaying that at one point. No luck.

#ngprogramming at irc.freenode.net
haXe | Keel imperative | Spyro! | Thru you


None

adam2510

Reply to Post Reply & Quote

Posted at: 5/30/08 05:10 AM

adam2510 EVIL LEVEL 13

Sign-Up: 10/02/05

Posts: 3,727

it will be fine

can anyone help me thanks

Web Hosting: Free! Premium!

BBS Signature

None

KaynSlamdyke

Reply to Post Reply & Quote

Posted at: 5/30/08 07:40 AM

KaynSlamdyke LIGHT LEVEL 16

Sign-Up: 06/25/04

Posts: 4,926

At 5/29/08 12:24 PM, adam2510 wrote: i think that is the right code
correct me if i am wrong

It's not

var xml_load: XML = new XML;
xml_load.ignoreWhiteSpace = true;
xml_load.load('/profiles/'+_root.username_txt.text+'.xml');

btw just for refrence here is the xml

<profile>
<username>testuser</username>
<password>testpassword</password>
<email>test@test.com.au</email>
</profile>

Your xml is non-standard, as it doesn't have a declaration.
Your password node is currently, however, located at xml_load.firstChild.childNodes[1] and your username at xml_load.firstChild.childNodes[0].

Stop spamming the place up with your requests. You are out of your league and don't appear to actually be LEARNING or EXPERIMENTING with your code.

Current build for ThreedeeTiles : Monkey
Previous: Lamprey, Mountain Goat (Dead Fork)


None

adam2510

Reply to Post Reply & Quote

Posted at: 5/31/08 09:54 AM

adam2510 EVIL LEVEL 13

Sign-Up: 10/02/05

Posts: 3,727

thanks

that is all i need now to get my site running

thankyou very much and i am sorry if i pissed you off

Web Hosting: Free! Premium!

BBS Signature

None

adam2510

Reply to Post Reply & Quote

Posted at: 6/1/08 08:35 AM

adam2510 EVIL LEVEL 13

Sign-Up: 10/02/05

Posts: 3,727

sorry if i am annoying you but i made some changes to the xml and if i change the pw childnode to 3 and the username one to 2 it doesnt work

here is the xml

<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href='hide-it.xsl' type='text/xsl'?>
<profile>
<username>adam2511</username>
<password>a1a9f8e76879c41f0671e2ca85f4db 2c</password>
<email>adam2513</email>
</profile>

Web Hosting: Free! Premium!

BBS Signature

None

Vengeance

Reply to Post Reply & Quote

Posted at: 6/1/08 08:42 AM

Vengeance EVIL LEVEL 28

Sign-Up: 03/18/05

Posts: 5,033

I can't wait to your insecure website is up so I can hack the shit out of it and show you just how fucking stupid you are.

========|| WWWWWWWW>[-[Blog] - [Audio] - [Userpage] - [Flash] - [Last.fm]-]<WWWWWWWW ||========

BBS Signature

None

adam2510

Reply to Post Reply & Quote

Posted at: 6/1/08 08:45 AM

adam2510 EVIL LEVEL 13

Sign-Up: 10/02/05

Posts: 3,727

look if i do it right YOU WONT BE ABLE TO HACK IT

so suk ma ballz FAGGOT!!!!!

Web Hosting: Free! Premium!

BBS Signature

None

GustTheASGuy

Reply to Post Reply & Quote

Posted at: 6/1/08 08:51 AM

GustTheASGuy LIGHT LEVEL 08

Sign-Up: 11/02/05

Posts: 11,430

You come here with a question every day. What makes you think you know a thing better than the people here?

#ngprogramming at irc.freenode.net
haXe | Keel imperative | Spyro! | Thru you


None

Vengeance

Reply to Post Reply & Quote

Posted at: 6/1/08 08:54 AM

Vengeance EVIL LEVEL 28

Sign-Up: 03/18/05

Posts: 5,033

At 6/1/08 08:45 AM, adam2510 wrote: look if i do it right YOU WONT BE ABLE TO HACK IT

What makes you think that? Honestly, it'll be simple as fuck to hack. Think about it, if you can have a flash document load the data, then whats to stop someone else making a dummy file and loading it all in to simply project the data? You have no idea HOW to use XML let alone WHAT to use it for. What in the world makes you think you're going to be able to keep it secure?

========|| WWWWWWWW>[-[Blog] - [Audio] - [Userpage] - [Flash] - [Last.fm]-]<WWWWWWWW ||========

BBS Signature

None

adam2510

Reply to Post Reply & Quote

Posted at: 6/1/08 09:00 AM

adam2510 EVIL LEVEL 13

Sign-Up: 10/02/05

Posts: 3,727

you might be able to make a dummy file but it is alot harder because you wont know the master key which allows flash to load the data :)

Web Hosting: Free! Premium!

BBS Signature

None

Vengeance

Reply to Post Reply & Quote

Posted at: 6/1/08 09:02 AM

Vengeance EVIL LEVEL 28

Sign-Up: 03/18/05

Posts: 5,033

At 6/1/08 09:00 AM, adam2510 wrote: you might be able to make a dummy file but it is alot harder because you wont know the master key which allows flash to load the data :)

Decompile what now?

========|| WWWWWWWW>[-[Blog] - [Audio] - [Userpage] - [Flash] - [Last.fm]-]<WWWWWWWW ||========

BBS Signature

None

adam2510

Reply to Post Reply & Quote

Posted at: 6/1/08 09:05 AM

adam2510 EVIL LEVEL 13

Sign-Up: 10/02/05

Posts: 3,727

At 6/1/08 08:51 AM, GustTheASGuy wrote: You come here with a question every day. What makes you think you know a thing better than the people here?

i know some things but when it comes to flash/xml i am only just starting to scratch the surface

Web Hosting: Free! Premium!

BBS Signature

None

adam2510

Reply to Post Reply & Quote

Posted at: 6/1/08 09:06 AM

adam2510 EVIL LEVEL 13

Sign-Up: 10/02/05

Posts: 3,727

oh ye btw

YOUR A FAGGOT

Web Hosting: Free! Premium!

BBS Signature

None

adam2510

Reply to Post Reply & Quote

Posted at: 6/1/08 09:54 AM

adam2510 EVIL LEVEL 13

Sign-Up: 10/02/05

Posts: 3,727

now back to what i was asking

i originally had the nodes correct but when i added 2 lines at the top it just screwed with it and i am not sure on how to fix it

Web Hosting: Free! Premium!

BBS Signature

None

adam2510

Reply to Post Reply & Quote

Posted at: 6/1/08 10:54 AM

adam2510 EVIL LEVEL 13

Sign-Up: 10/02/05

Posts: 3,727

please help me

Web Hosting: Free! Premium!

BBS Signature

None

GuyWithHisComp

Reply to Post Reply & Quote

Posted at: 6/1/08 11:00 AM

GuyWithHisComp LIGHT LEVEL 27

Sign-Up: 11/10/05

Posts: 4,008

Not sure if I want to help you since you call all people who help you 'faggot'...

And if I help you'll probably refuse to listen anyway, since that's what you normally do.

BBS Signature

None

adam2510

Reply to Post Reply & Quote

Posted at: 6/1/08 11:14 AM

adam2510 EVIL LEVEL 13

Sign-Up: 10/02/05

Posts: 3,727

i dont call hacking someones site helping

anyway i am listening

Web Hosting: Free! Premium!

BBS Signature

None

GustTheASGuy

Reply to Post Reply & Quote

Posted at: 6/1/08 11:19 AM

GustTheASGuy LIGHT LEVEL 08

Sign-Up: 11/02/05

Posts: 11,430

Hear this: MySQL.

#ngprogramming at irc.freenode.net
haXe | Keel imperative | Spyro! | Thru you


None

adam2510

Reply to Post Reply & Quote

Posted at: 6/1/08 11:26 AM

adam2510 EVIL LEVEL 13

Sign-Up: 10/02/05

Posts: 3,727

the host wont let me get MYSQL and i dont want it anyway because i will screw it up and never get it working atleast at the moment i have it mostly working and it is just a small problem which can be fixed

and no i am not changing hosts

Web Hosting: Free! Premium!

BBS Signature

None

KaynSlamdyke

Reply to Post Reply & Quote

Posted at: 6/1/08 01:08 PM

KaynSlamdyke LIGHT LEVEL 16

Sign-Up: 06/25/04

Posts: 4,926

Locking this thread, and any other adam makes in the next month regarding any topic in this forum he makes concerning his website that I find on the first page.

You're not learning, you're not accepting the help you're being given, and your project is infeasible. For gods sake, change hosts. You CAN NOT DO THIS project WITHOUT a secure database system, and XML IS NOT IT.

Current build for ThreedeeTiles : Monkey
Previous: Lamprey, Mountain Goat (Dead Fork)


All times are Eastern Standard Time (GMT -5) | Current Time: 04:00 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!