Date: 10/29/00
- Next message: Zeev Suraski: "Re: [PHP-DEV] PHP 4.0 Bug #7518: Rounding problems with mktime() or date()"
- Previous message: Ricardo Dias Marques: "[PHP-DEV] What was PHP 4.0.3 apache-module memory leak?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: php <email protected>
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-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Zeev Suraski: "Re: [PHP-DEV] PHP 4.0 Bug #7518: Rounding problems with mktime() or date()"
- Previous message: Ricardo Dias Marques: "[PHP-DEV] What was PHP 4.0.3 apache-module memory leak?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

