Log in

View Full Version : PHP > Submit



abzd
03-20-2008, 04:03 PM
Hi i'm looking for the code for submitting my php.

Current I have a post method which submits it to an email which works great.

But when it submits it opens the php page and displays the html on that page.

What I want is a little pop up box telling the user that the information has been sent rather than them being taken to a html page and having to click back to where they were.

I've tried a few different things like onclickwindow, but couldn't get it to work.

Any help would be great.

thetestingsite
03-20-2008, 11:58 PM
Try do something like this in your form tag:



<form action="something.php" method="POST" onsubmit="window.open(this.action, 'newwin', 'menubar=1,resizable=1,width=350,height=250'); return false;">


Hope this helps.

abzd
03-21-2008, 08:59 AM
Strange now my php seems to doesn't work.

I replaced this:


<form action="php/send.php" method="post" class="f-wrap-1" id="contact" >

with this:


<form action=" php/send.php" method="POST" class="f-wrap-1" id="contact" onsubmit="window.open(this.action, 'newwin', 'menubar=1,resizable=1,width=400,height=250'); return false;">

vikram.raste
03-21-2008, 09:40 AM
post the url please, so that i can help you out