troubleshooting Question

CGI pull variables from a form

Avatar of kkbenj
kkbenj asked on
Scripting Languages
4 Comments2 Solutions412 ViewsLast Modified:
It has been ages since I've done CGI Perl scripting.

My variable $UName is blank when this script is executed.  Why is not being picked up from the HTML form?
HTML:
--------------------------------------------------------------------------------------
....
</head>
<body class='d-s'>
        <form id='d-form'>
          <div class='section form'>
            <h1>Create your account</h1>
            <p>Creating an online account lets you easily update your information.</p>
            <p class='required'>
              All fields marked
              <em class='red'>*</em>
              are required
            </p>
            <h2>Create your username and password</h2>
            <fieldset>
              <ol>
                <li class='required-field' style='float: none;'>
                  <label>
                    Username
                    <em>*</em>
                  </label>
                  <input name='Wusername' type='text' />
                </li>
                <li class='required-field' style='float: none;'>
                  <label>
                    Password
                    <em>*</em>
                  </label>
                  <input id='password' name='Wpassword' type='password' />
                </li>
                <li class='required-field' style='float: none;'>
                  <label>
                    Confirm Password
                    <em>*</em>
                  </label>
                  <input id='confirmpassword' name='Wconfirmpassword' type='password' />
                </li>
              </ol>
            </fieldset>
          </div>
            <div class='submit'>
              <input class='pill-button' type='submit' url='/cgi/unamecheck.cgi' value='Start!' />
            </div>
        </form>
...
--------------------------------------------------------------------------------------
unamecheck.cgi:
...

my $UName=param('Wusername');
my $UPassword=param('Wpassword');
print "$UName - name<br>";

...
--------------------------------------------------------------------------------------

Thanks in advance for any help.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros