I am attempting to build a web form that will be used to launch the below command. However, the backslashes for the command line options are giving me a headache. The web form will have inputs for each option such as Adminuser, Adminpass, Adminhost, Adminport, CMD etc. Below is the actual command line that I am attempting to launch. How could this be done? Thanks.
COMMAND LINE COMMAND:
ftpconfig.exe /ADMINUSER=Administrator /ADMINPASS=password /ADMINHOST=localhost /ADMINPORT=31000 /CMD= adduser /server="Server1" /user=user1 /password=user1password
EXISTING PHP CODE
<? PHP
if (($POST[username] == "") || ($POST[userpasswd]== "")) {
header("Location: createuser.html");
exit;
else {
$result = $_POST[username];
}
?>
<html>
<head>
<title>FTP Automation Order Form</title>
</head>
<body>
<img src="i3tp_logo.gif" align="top">
<P> The result of the input is: <? echo "$result"; ?></P>
</body>
</html>