PDA

View Full Version : Basic Perl Writing Program


jclarke
04-17-2006, 05:25 AM
I want to be able to write to an XML depending on what form values are when the form is submitted.

eg.

-do some thing to get the form values,
-set a variable for the password
-set a variable for the username
-open a file on the server
-write the username and password in an xml form :
$writeData = "<user>\n<name>"+$userName+"</name>\n<pass>"+$userPass+"</pass></user>\n";
-write the data
-close to read
-send the browser to success page


That's kind of the structure I wish my perl program to have, I just don't know enough about it, I just know it can to what I said....

Thanks anyone that can help!

jclarke
04-17-2006, 02:19 PM
I want to be able to write to an XML depending on what form values are when the form is submitted.

eg.

-do some thing to get the form values,
-set a variable for the password
-set a variable for the username
-open a file on the server
-write the username and password in an xml form :
$writeData = "<user>\n<name>"+$userName+"</name>\n<pass>"+$userPass+"</pass></user>\n";
-write the data
-close to read
-send the browser to success page


That's kind of the structure I wish my perl program to have, I just don't know enough about it, I just know it can to what I said....

Thanks anyone that can help!