PHP 4.0 Bug #7519: Forms won't work
| From: | php at lusis dot org | Date: | Sun, 29 Oct 2000 13:55:58 +0000 |
| Subject: | PHP 4.0 Bug #7519: Forms won't work | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-36343@lists.php.net to get a copy of this message | ||
From: php@lusis.org
Operating system: Linux
PHP version: 4.0.3pl1
PHP Bug Type: *General Issues
Bug description: Forms won't work
I recently upgraded to the latest php and noticed that my install of twig stopped working. I have
just now (2 days later) figured out the problem. Forms in php are not working. Form values
aren't being submitted from a php created page. Take this code for example:
<?
// open database connection and prepare the query
$dbconnect = ibase_connect('alive.lusis.org:D:\\databases\\rants.gdb', dbuserhere,
dbpasshere);
$sth=ibase_query($dbconnect, 'SELECT * FROM TBLSUBJECTS');
// start the page
echo "<html><head><title>Rants: select a category</title>
<LINK REL=\"STYLESHEET\" TYPE=\"text/css\"
HREF=\"/includes/rants.css\">
</head>
<body bgcolor=\"#93824c\">
<B><H1 class=large>my.rants</H1></b>
<br><h1>Select a topic</h1>.
<br><hr>
<form method=post action=addrant.php>
<h1>Subject:</h1><br>
<select name=subid>";
// Grab the subjects from the database to create the subject drop down list
while ($row = ibase_fetch_object($sth))
{
$subjectid = $row->SUBJECTID;
$subject = $row->SUBJECTNAME;
echo "<option value=$subjectid>$subject";
}
// er..close the database connection maybe?
ibase_close ($dbconnect);
// finish the page out
echo "</select><br>
<br>
<h1>Title:</h1> <input type=text name=title size=55>
<br>
<textarea name=body rows=25 cols=100 wrap>
</textarea>
<br><input type=submit></form>
<center><hr><a href=\"http://www.lusis.org\">home</a></body>
</html>";
?>
The database calls are working fine and my drop down list of subjects is being populated but when I
fill in information and hit submit, my formdata isn't going through. I've tried this with
perl and it all works fine but not with php. What's happening on my twig side is that login and
password aren't being submitted and i am getting dropped back to the login screen. I downloaded
every php-imap webmail program out there and all with the same results. Any ideas?
(and yes the database information is correct since interbase is currently running on a win32 box)
--
Edit Bug report at: http://bugs.php.net/?id=7519&edit=1