Help with SQL Query for HTML


OSNN Junior Addict
Jul 26, 2005
hey lookin to insert an sql query in a html page.....i need some help doin that....

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
body {
background-color: #FFFFFF;

<table width="415" height="164" border="0" bordercolor="#CCCCCC">
<td width="405"><div align="center"><strong>City or Airport Codes </strong></div></td>
<td><form id="form1" name="form1" method="post" action="">
<label for="textfield">Airport Code: </label>
<input type="text" name="textfield" id="textfield" />

</form> </td>

<td><form id="form4" name="form4" method="post" action="">
<label for="label3">Country:</label>
<input type="text" name="textfield4" id="label3" />
</form> </td>
<table width="415" border="0" bordercolor="#CCCCCC">
<td><object classid="clsid[IMG][/IMG]27CDB6E-AE6D-11cf-96B8-444553540000" codebase=",0,0,0" width="103" height="24">
<param name="movie" value="button10.swf" />
<param name="quality" value="high" />
<embed src="button10.swf" quality="high" pluginspage="" type="application/x-shockwave-flash" width="103" height="24" ></embed>
sql query.........

select Airport_codes.Airport_code, Airport_codes.Airport_Name, Airport_codes.State, Airport_codes.Country
from Airport_codes
where (((Airport_codes.Airport_code)=[airport_code].[airport]));

this the html page and the sql query....i need some help insertin the sql query near the enter city do i do it....any help is appreciated....
and also after i type in the airport code in the text box and hit do i link the search button in order to bring up the correct code........thanx guyz
Last edited by a moderator:


Bow Down to the King
Political User
Apr 5, 2002
Thread title modified.

Please be more specific with your thread titles. "Help" is not a good thread title. Thank you.


Woah.. I'm still here?
Staff member
Political User
Apr 26, 2004
can't do it as a straight .htm/.html page..

You would need to use something along the lines of an .asp/.aspx/.php page to do it.. so the question then is, what server side processing language are you going to use because that will change how your page is developed.

Members online

No members online now.

Latest posts

Latest profile posts

Terrahertz wrote on Electronic Punk's profile.
Yo fellas.
Electronic Punk wrote on Sazar's profile.
Where are you buddy? :(
Perris Calderon wrote on Electronic Punk's profile.
Hey ep!

All good with me, applying for microsoft mvp right now, should have done this a while ago.

Notifications don't work, I only found your response by comming back to hunt up some threads, if you want, give me your email address so we can keep in touch easier, mine is perriscalderon at gmail
Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?

Forum statistics

Latest member