...

View Full Version : Help: Search Form Submit to iFrame in new page



holdenhenry
02-15-2012, 04:49 PM
Hey folks,
I'm trying to submit a search form to a library database that will show results in an iFrame that's located in another page. I believe it has something to do with the target attribute, but haven't really managed to get anything useful happening. The code below works to search the db in its own new window.


<form name="catalog-search" action="http://www.coala.org/uhtbin/cgisirsi/W0RuTQQHuY/0/0/57/5" method="GET">
<p>
<input name="search_type" value="search" type="hidden" />
<input name="user_id" value="DELRAY" type="hidden" />
<input name="password" value="guest" type="hidden" />
<input name="library" value="DELRAY" type="hidden" />

<input type="text" size="18" name="searchdata1" maxsize="100" style="font-size: 10pt" value="">
<select name="srchfield1">
<option value="GENERAL^SUBJECT^GENERAL^^words or phrase">Keywords</option>
<option value="AU^AUTHOR^AUTHORS^Author Processing^author">author</option>
<option value="TI^TITLE^SERIES^Title Processing^title">title</option>
<option value="SU^SUBJECT^SUBJECTS^^subject">subject</option>
<option value="SER^SERIES^SERIES^Title Processing^series">series</option>
<option value="PER^PERTITLE^SERIES^Title Processing^periodical title">periodical title</option> </select>
<input type="submit" value="Search" border="0" alt="Search">

</form>

I need it to submit the search to an iFrame located at www.myaddress.com/catalogpage.php

I'm building this in wordpress and have access to all the template files so if I need to edit those that's not a problem.


Any help would be greatly appreciated.

Thanks!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum