Web Hosting Talk







View Full Version : How to get new php page to open in same popup after submit of form


Blurple
02-19-2010, 07:16 PM
Ok, I have a form on attorneydisabilityinsurance dot com

I was wondering how to make the thank you page appear in the same popup window after the form is submitted? right now it redirects to the page

</tr>
<tr>
<td class="buttons"></td>
<td class="buttons">
<a href="thank-you.php"><img src="<?=$img_dir?>/but-submit.gif" alt="Submit" /></a>
</td>
</tr>
</table>

sKunKbad
02-21-2010, 04:15 AM
Normally you would do this by changing the form's action to the same location that the form is at, then by using logic to determine if the form data was submitted correctly, output a thank you message. This whole routine is going to be specific to your data, but the concept is rather simple.

HTTP404
02-21-2010, 10:59 AM
Could use AJAX, or within the PopUP creat a frame, eg. 'frame = popup' then have the link target to '_popup', so you could have a few pages in the same popup.