DaveLinger Posted July 16, 2006 Share Posted July 16, 2006 So I have this search page, with a bunch of options then a submit button, then below that, an iframe. I'd like the results to open in the iframe, rather than refreshing the whole page. How can this be accomplished?important tags:[code]<form method="POST" action="gosearch.php"><input type="submit" value="Submit"></form><iframe name="results" src="includes/blank.php" scrolling="yes" width="100%" height="100%" frameborder="0" allowtransparency="1"></iframe>[/code] Link to comment https://forums.phpfreaks.com/topic/14729-getting-a-submit-result-to-open-in-a-frameiframe/ Share on other sites More sharing options...
hvle Posted July 16, 2006 Share Posted July 16, 2006 this is html question.you simply set the target frame, just like you'd use for <a><form method="POST" action="gosearch.php" target="results"> Link to comment https://forums.phpfreaks.com/topic/14729-getting-a-submit-result-to-open-in-a-frameiframe/#findComment-58768 Share on other sites More sharing options...
Drumminxx Posted July 16, 2006 Share Posted July 16, 2006 I don't know how far along you are on this project but what your describing is what Ajax and DHTML are good at. But thats javascript and I'll leave it at that. Link to comment https://forums.phpfreaks.com/topic/14729-getting-a-submit-result-to-open-in-a-frameiframe/#findComment-58770 Share on other sites More sharing options...
DaveLinger Posted July 16, 2006 Author Share Posted July 16, 2006 I'm working with Ajax at work...In this case I would want it to use an iframe, unless I wanted it to search for every letter like google suggest, but that would rape my server. Thanks hvle. Link to comment https://forums.phpfreaks.com/topic/14729-getting-a-submit-result-to-open-in-a-frameiframe/#findComment-58778 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.