Javascript form to PHP

driveflexfuel

New Member
Messages
159
Reaction score
0
Points
0
I have a form that collects 2 variables "radius" and "zip"

My current code is

Code:
<script type="text/javascript">
function openWin(zip, radius) {
    window.open("http://www.mywebsite.com/stations/results.php?zip=" + zip + "&radius=" + radius, '_blank', "width = 400px, height = 500px, scrollbars = yes");
    return false;
}
</script>

I want the entire site to be xhtml verified but this code is the only thing on my site that is holding me back. If someone knows how I could work around this issue I would highly appreciate the help.
 
Last edited:

xmakina

New Member
Messages
264
Reaction score
0
Points
0
Will it pass verification if you use
HTML:
<script type="text/javascript" src="script.js"></script>
 
Last edited:

driveflexfuel

New Member
Messages
159
Reaction score
0
Points
0
Thanks I don't know how i did not think of doing that but I guess I need to sleep before I think next time.

You may close this thread.
 
Top