|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-10-29 15:06 UTC] php at lusis dot org
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Jun 30 14:00:01 2026 UTC |
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)