Can't POST to a Frame

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
virgil
Forum Commoner
Posts: 59
Joined: Thu Jun 13, 2002 11:43 pm
Location: New York, U.S.

Can't POST to a Frame

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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)
virgil
Forum Commoner
Posts: 59
Joined: Thu Jun 13, 2002 11:43 pm
Location: New York, U.S.

Post 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?
Post Reply