Hmmm, that was the solution.  That's kind of a strange
little thing isn't it?

Thanks a lot for your help,


I've had this same problem.  It seems that the value
of submit is only sent
if the button is clicked (netscape and internet
explorer).  Could it be
that you're using the enter key to submit the form?

The solution I used was to remove the value assignment
to the submit button
and set it in a hidden variable

<input type="hidden" name="submit" value="register">

- Jacob

At 10:58 09/19/2002, Jesse Lawrence wrote:
>Hello everyone,
>In a simple signup form that I'm using, I send the
>variables to a script, which performs a function if
>($submit == "register") {
>    function();
>  }
>The problem is, my signup form isn't passing the
>submit variable, though it is passing the other
>variables in the form.
>The strange thing is, when I try this in the Opera
>browser, the $submit variable does get passed along,
>but in both Mozilla and Konqueror, it does not.
>Have I made a little error in the following code? 
><div id="loginform">
><center>Join <? print $SITE_NAME; ?>...</center><br
><br />
><form action="index.php" method="get" name="signup">
>Username:<br />
>  <input type="text" name="username" /><br /><br />
>Name:<br />
>  <input type="text" name="name" /><br />
>Email:<br />
>  <input type="text" name="email" /><br />
>Homepage:<br />
>  <input type="text" name="homepage" /><br />
>About you:<br />
><textarea name="description" rows="5" cols="19">
></textarea><br />
>Password:<br />
>  <input type="password" name="password" /><br />
>Confirm Password:<br />
>  <input type="password" name="password2" /><br />
><br />
>  <input type="submit" name="submit" value="register"
>/><br />
>Your help is greatly appreciated,
>Jesse Lawrence

Post your free ad now!

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to