PDA

View Full Version : I am dealing with forms...plz help


b4me
09-02-2002, 08:14 AM
Alright, this is my problem.. I am trying to submit the information on my form to open up a new window and have all the information that was on the form in the new window...

I tried both of these codes and neither worked....
Can some 1 plz help?!?

<script language="javascript">
function prompt(page)
{
var so=document.form[car].submit[sent].value;
so=this.open(page,"neww","height=800 ,width=800,menubar=no,status=no,toolbar=no,location=no")
}
</script>

<script language="javascript">
function prompt()
{
var go= new String()
go=document.form[car].submit[sent].value;
window.open("Your Car is as followes" + " " + go);
}
</script>

Mr J
09-02-2002, 11:34 AM
Have a play with this

<script>
function test(){
var me=window.open('','win1','width=400,height=400,left=100,top=100')
me.document.write(document.f1.t1.value+"<br>")
me.document.write(document.f1.t2.value)
}

</script>
Transfer Form data to Popup
<P><form name=f1 onsubmit="test()">
<input type=text name=t1 value="Testing Text">
<input type=text name=t2 value="Blah Blah Blah">
<input type=submit>
</form>

Mr J
09-02-2002, 11:37 AM
The above has not rendered correctly on this page the following should be all one line.


var me=window.open('','win1','width=400,height=400,left=100,top=100')