RE: form vars missing...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jas

> 
> Here is my problem:
> 
> Using both the Get and Post methods my variables are missing on the
> resulting page.  Example of code is listed below:
> 
> <form method="post" url="result.php" name="form">
> <input type="text" name="name"><br>
> <input type="text" name="url"><br>
> <input type="submit" value="send">
> 
> <?php
> if ((!$name) || (!url)) {
>     do nothing;
> } elseif (($name) || ($url)) {
>     do rest of code;
> } else {
>     broken; }


I see a couple problems here,
1. When was the "url" attribute of the form element introduced?
  That should be action="result.php"

2. As others indicated: you aren't giving any value to your text inputs.
  What are you expecting to see, even if the <  url="action.php" worked?

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux