Click to See Complete Forum and Search --> : CSS Re-direct from a Form entry


mrbunny666
02-16-2004, 12:17 PM
Basically, the Survey has a form entry called: Pin #
Person enters a #: 112233

upon SUBMIT, redirect would open the new page of:
www.yourwebsite.com/ [Pin # data] .htm

Heres how it works in Java:
function OpenSpecialWindow {
window.open('http://www.yourwebsite.com/' + frmSurvey.txtPIN.value,'frmNewWindow','width=550,height=600,resizable')
}
OnSubmit="OpenSpecialWindow();"

how do I do this in css in a formmail.pl script?

toicontien
02-16-2004, 01:33 PM
Originally posted by mrbunny666
Basically, the Survey has a form entry called: Pin #
Person enters a #: 112233

upon SUBMIT, redirect would open the new page of:
www.yourwebsite.com/ [Pin # data] .htm

Heres how it works in Java:
function OpenSpecialWindow {
window.open('http://www.yourwebsite.com/' + frmSurvey.txtPIN.value,'frmNewWindow','width=550,height=600,resizable')
}
OnSubmit="OpenSpecialWindow();"

how do I do this in css in a formmail.pl script?
You can't using CSS only. JavaScript is the only way to do what you want. Cascading Style Sheets merely add style to markup documents, hence Cascading Style Sheets. :)