...

View Full Version : submit data to iframe on a different page



tittbit
08-05-2012, 12:56 PM
1) Project Details: (be as specific as possible):
I
Have a form that submit 10 digit no. to a different site.
here is the form

<form name="pnrForm" method="post" action="http://www.indianrail.gov.in/cgi_bin/inet_pnrstat_cgi.cgi" target="_blank">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top">
<input name="lccp_pnrno1" type="text" style="font-size:20pt;font-weight: bold;border: 2px solid #1569C7;margin-bottom: 10px" size="20" maxlength="10" alt="PNR First Field" /></td>
</tr>
<tr>
<td align="center" valign="top">
<input type="submit" name="submitpnr" value="Get PNR Status" />
</td>
</tr>
</table>
</form>
I want that the remote site with result should open on a new page of my site within iframe.

I tried my self by making action to the new page name of my site and making target as iframe id but it didnt work, i think it needs some java or php.

well you can check the live form at http://www.irctcrailway.in
the work i tested but didnt work
http://www.irctcrailway.in/test

Some one plz help me

Thanks

MOHAMMAD arshad

Chrisomator
08-21-2012, 05:31 PM
If you still need someone, i could do this for you.

Skype: chrisomator

Greetz



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum