Page 1 of 1

Can't POST to a Frame

Posted: Wed Jun 19, 2002 10:39 pm
by virgil
Hi

I am trying to get a search form(.html) to send its MySQL query results(.php) to a frame in a frame page.

If I use

Code: Select all

<form method="post" action="resultsframe.htm">
I get a Method Not Allowed
The requested method POST is not allowed for the URL /resultsframe.htm. error.

The code below just replaces the search page with the query results in the same original window.

Can I tweek it to make it display the query results in a frame page?

Code: Select all

<form  method="post" action="query.php" target="resultsframe.htm" onSubmit="resultsframe.htm">
The frames page has query.php set as its source(src=query.php).



Thanks for any advice. Virgil

Posted: Thu Jun 20, 2002 6:30 am
by volka
this happend to me once (405 Method Not Allowed). I did set up the webserver faulty so that php scripts were sent as plain-text (forgot the application type).
Don't know what error code will be sent if
  • the posted data exceeds the maximum amount
  • POST-requests are denied (i.e. .htaccess)

Posted: Thu Jun 20, 2002 8:02 am
by virgil
I thought it might be a logic problem. Like maybe you can not post to a frame itself, you have to post to an actual page. Is there a way to route the post through the frame url to the .php query page url?