
djjamiegee
Members-
Posts
23 -
Joined
-
Last visited
Never
Profile Information
-
Gender
Not Telling
djjamiegee's Achievements

Newbie (1/5)
0
Reputation
-
hi mate thank for your helps how would i go about echoing out the errors i am still really new to php and still find it difficult when errors occur to find out the root cause of them. jamie
-
hi guys just a quickie here i have a basic members login from still in its raw state but i can get the password to match, ill explain. i have 4 pages to to register, login, members and logout i sign up on the register page i.e username and 2 password fields all works fine and goes in to mysql database all ok with encrypted password. when i try to login using the login page it always comes up with error invalid password please try again. anybody have any idea why??] many thanks jamie login page <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php // Connects to your Database mysql_connect("****", "*****", "*****") or die(mysql_error()) ; mysql_select_db("******") or die(mysql_error()) ; //Checks if there is a login cookie if(isset($_COOKImyE['ID_my_site'])) //if there is, it logs you in and directes you to the members page { $username = $_COOKIE['ID_my_site']; $pass = $_COOKIE['Key_my_site']; $check = mysql_query("SELECT * FROM users WHERE username = '$username'")or die(mysql_error()); while($info = mysql_fetch_array( $check )) { if ($pass != $info['password']) { } else { header("Location: members.php"); } } } //if the login form is submitted if (isset($_POST['submit'])) { // if form has been submitted // makes sure they filled it in if(!$_POST['username'] | !$_POST['pass']) { die('You did not fill in a required field.'); } // checks it against the database if (!get_magic_quotes_gpc()) { $_POST['pass'] = addslashes($_POST['pass']); } $check = mysql_query("SELECT * FROM users WHERE username = '".$_POST['username']."'")or die(mysql_error()); //Gives error if user dosen't exist $check2 = mysql_num_rows($check); if ($check2 == 0) { die('That user does not exist in our database. <a href=register.php>Click Here to Register</a>'); } while($info = mysql_fetch_array( $check )) { $_POST['pass'] = stripslashes($_POST['pass']); $info['password'] = stripslashes($info['password']); $_POST['pass'] = md5($_POST['pass']); //gives error if the password is wrong if ($_POST['pass'] != $info['password']) { die('Incorrect password, please try again.'); } else { // if login is ok then we add a cookie $_POST['username'] = stripslashes($_POST['username']); $hour = time() + 3600; setcookie(ID_my_site, $_POST['username'], $hour); setcookie(Key_my_site, $_POST['pass'], $hour); //then redirect them to the members area header("Location: members.php"); } } } else { // if they are not logged in ?> <form action="<?php echo $_SERVER['PHP_SELF']?>" method="post"> <table border="0"> <tr><td colspan=2><h1>Login</h1></td></tr> <tr><td>Username:</td><td> <input type="text" name="username" maxlength="40"> </td></tr> <tr><td>Password:</td><td> <input type="password" name="pass" maxlength="50"> </td></tr> <tr><td colspan="2" align="right"> <input type="submit" name="submit" value="Login"> </td></tr> </table> </form> <?php } ?> Login Full </body> </html> register page <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php mysql_connect("******", "*********", "*********") or die(mysql_error()) ; mysql_select_db("**********") or die(mysql_error()) ; if (isset($_POST['submit'])) { if (!$_POST['username'] | !$_POST['pass'] | !$_POST['pass2'] ) { die('You did not complete all of the required fields'); } if (!get_magic_quotes_gpc()) { $_POST['username'] = addslashes($_POST['username']); } $usercheck = $_POST['username']; $check = mysql_query("SELECT username FROM users WHERE username = '$usercheck'") or die(mysql_error()); $check2 = mysql_num_rows($check); if ($check2 != 0) { die('Sorry, the username '.$_POST['username'].' is already in use.'); } if ($_POST['pass'] != $_POST['pass2']) { die('Your passwords did not match. '); } $_POST['pass'] = md5($_POST['pass']); if (!get_magic_quotes_gpc()) { $_POST['pass'] = addslashes($_POST['pass']); $_POST['username'] = addslashes($_POST['username']); } $insert = "INSERT INTO users (username, password) VALUES ('".$_POST['username']."', '".$_POST['pass']."')"; $add_member = mysql_query($insert); } else { ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <table border="0"> <tr><td>Username:</td><td> <input type="text" name="username" maxlength="60"> </td></tr> <tr><td>Password:</td><td> <input type="password" name="pass" maxlength="10"> </td></tr> <tr><td>Confirm Password:</td><td> <input type="password" name="pass2" maxlength="10"> </td></tr> <tr><th colspan=2><input type="submit" name="submit" value="Register"></th></tr> </table> </form> <?php } ?> <h1>Registered</h1> <p>Thank you, you have registered - you may now login.</p> </body> </html>
-
hi i am still ne to php and still trying to get me head around some things i have a simple contact form on my site but when someone fills it in the email is sent to my inbox on my webmail from my server but when i opening it in outlook 2007 it is in my spam folder, i have added some header within the php does anyone know why???? heres the code <?php ini_set("sendmail_from", "[email protected]"); $email_to = "[email protected], [email protected]"; $name =$_POST['name']; $email_from =$_POST['email']; $email =$_POST['email']; $phone =$_POST['phone']; $solution =$_POST['solution']; $budget =$_POST['budget']; $currentsite =$_POST['currentsite']; $comments = $_POST['comments']; $email_subject = "Contact Form"; $headers = "From: $email_from .\n"; "Reply-To: $email_from .\n"; "MIME-Version: 1.0 \r\n" ; "Content-Type: text/plain \r\n"; "Return-Path: $from\n"; "X-Mailler: PHP v" . phpversion() . "\n"; "Content-type: text/html; charset=iso-8859-1\r\n"; $message= "Name: " . $name . "\nEmail: " . $email . "\nPhone: " . $phone ."\nSolution: " . $solution ."\nBudget: " . $budget ."\nCurrentSite: " . $currentsite ."\nComments: " . $comments; $sent = mail($email_to, $email_subject, $message, $headers, '[email protected]'); if ($sent) { header( "Location: http://www.designtwenty1.com" ); } else { echo 'There has been an error sending your comments. Please try later.'; } ?> many thanks in advance jamie
-
please help! streamline.net hosted site no contact forms working!!
djjamiegee replied to darkjedig's topic in PHP Coding Help
hi guys i now have the same problem and a very very stuck, still newish to php and just cant get any contact forms to send on streamline (will not use again) i have implmeted the code which you have said works but i cant get it to work on mine and i cant figure out why heres me code <?php ini_set("sendmail_from", "[email protected]"); $email_to = "[email protected]"; $name =$_POST['name']; $email_from =$_POST['email']; $phone =$_POST['phone']; $solution =$_POST['solution']; $budget =$_POST['budget']; $currentsite =$_POST['currentsite']; $comments = $_POST['comments']; $email_subject = "Contact Form"; $headers = "From: $email_from .\n"; "Reply-To: $email_from .\n"; $message= "Name: " . $name . "\nEmail: " . $email . "\nPhone: " . $phone ."\nSolution: " . $solution ."\nBudget: " . $budget ."\nCurrentSite: " . $currentsite ."\nComments: " . $comments; $sent = mail($email_to, $email_subject, $message, $headers, '-f'.$email_from); if ($sent) { header( "Location: http://www.designtwenty1.com" ); } else { echo 'There has been an error sending your comments. Please try later.'; } ?> many thanks and i hope someone can help, streamline shud be ashamed!!!!! -
//connect to mysql //change user and password to your mySQL name and password mysql_connect("hostname","db_name","db_password"); //select which database you want to edit mysql_select_db("db_name"); thats how i connect to mine jamie
-
hiya were getting there i have added that an it works better only thing now is when i change the area box my choice i get an error Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\domains\d\djjamiegee.com\user\htdocs\pps\finderresults.php on line 56 properties found Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\domains\d\djjamiegee.com\user\htdocs\pps\finderresults.php on line 60 Sorry no properties were found using your search requirements, Please narrow your prefrences to return more results. many thanks jamie
-
hiya i just tried it and all i get on my page now is SELECT * FROM properties WHERE bedrooms >= '1' AND ORDER BY maxpriceYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY maxprice' at line 1 cheers jamie
-
hiya thanks for your reply i have added that and if all the boxes have a choice selected it does the order by maxprice bu if like you said area is empty is doesnt....im still curious to why tho?? many thanks jamie
-
hiya i have the following code working how i want it to apart from the order by max price bit. any suggestions??? <?php $type=($_POST['type']=="") ? "" : "type = '{$_POST['type']}' AND"; $bedrooms=$_POST['bedrooms']; $maxprice=($_POST['maxprice']=="") ? "" : "maxprice < '{$_POST['maxprice']}' AND"; $area=($_POST['area']=="") ? "" : "area = '{$_POST['area']}' ORDER BY"; //connect to mysql //change user and password to your mySQL name and password mysql_connect("*****","*****","*****"); //select which database you want to edit mysql_select_db("****"); //POST the mysql and store them in $result //change whatevertable to the mysql table you're using //change whatevercolumn to the column in the table you want to search $result = mysql_query("SELECT * FROM properties WHERE $type bedrooms >= '$bedrooms' AND $maxprice $area maxprice"); //how many properties found $number=mysql_num_rows($result); echo "$number properties found"; echo "<br><br>"; if (mysql_num_rows($result) > 0) { //grab all the content while($r=mysql_fetch_array($result)) { $type=$r["type"]; $bedrooms=$r["bedrooms"]; $maxprice=$r["maxprice"]; $area=$r["area"]; $first_address=$r["first_address"]; $link=$r["link"]; $image=$r["image"]; $postcode=$r["postcode"]; $lease=$r["lease"]; $desc=$r["desc"]; //display the row echo "<table border='0' cellpadding='5' align='center' width='650' class='search'>"; echo "<tr>"; echo "<td width='100'><img src=\"" . $r["image"] . "\"></td>"; echo "<td colspan='5' valign='top'>$desc</td>"; echo "<td align='right'><a href=\"" . $r["link"] . "\"><img src=\"info.png" . "\" border=0 alt=\"" . "\"></a></td>"; echo "</tr>"; echo "<tr>"; echo "<td width='100' rowspan='2' align='center'><font size='3'><b>£$maxprice</b></font></td>"; echo "<td width='130' colspan='2' align='left'><b>No of Bedrooms:</b> $bedrooms</td>"; echo "<td width='130' colspan='2' align='left'><b>Location:</b> $area</td>"; echo "<td width='240' colspan='2' align='left'><b>Lease Type:</b> $lease</td>"; echo "</tr>"; echo "<td width='130' colspan='2' align='left'><b>Property Type:</b> $type</td>"; echo "<td width='130' colspan='2' align='left'><b>Street:</b> $first_address</td>"; echo "<td width='240' colspan='2' align='left'><b>Post Code:</b> $postcode</td>"; echo "</tr>"; echo "</table>"; echo "<br>"; }} else { echo "Sorry no properties were found using your search requirements, Please narrow your prefrences to return more results.<br><br>"; } ?>
-
im slowly going insance trying to work this out :(
djjamiegee replied to djjamiegee's topic in PHP Coding Help
hiya yeh i did read something about that i have never used cookies before would you know how to store a cookie from the form data or know of a good tutorial?? many thanks jamie -
hi i have looked everywhere and i mean everywhere on the web for help to this solution but cant find one that works anywhere. i have a form with 3 drop down boxes and and input fields the user selects from the 3 boxes and then writes in the input field to search my database. this all works fine with the results being displayed by asending by maxprice. i now want a few links at the top of the page so they can chnage the order of how the results are displayed i.e price asc/desc or no. of bedrooms asc/desc i have tried some methods but the main problem i am having is when i click a link at the top it refreshes the page and forgets what the user selected from the form so it then returns no results. any help on this matter will be deeply appreciated. here is my code which is all on the php page with the form at the bottom. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Price Property Services | Search Results</title> <link rel="stylesheet" type="text/css" href="pps.css" /> </head> <body id="background"> <div id="maincontainer"> <div id="mainheader"> <div id="logo"> <table width="780" border="0" class="table"> <tr> <td width="182"><img src="logo.gif" width="182" height="92" /></td> <td width="588" align="right"><img src="mainbanner.jpg" width="588" height="92" /></td> </tr> </table> </div> <div id="nav"> <ul id="nav"> <li id="thome"><a href="index.html" class="selected"></a></li> <li id="tprop"><a href="properties.html"></a></li> <li id="tabout"><a href="about.html"></a></li> <li id="tlegal"><a href="legal.html"></a></li> <li id="tfees"><a href="fees.html"></a></li> <li id="tterms"><a href="terms.html"></a></li> <li id="tcontact"><a href="contact.html"></a></li> <li id="tlinks"><a href="links.html"></a></li> </ul> </div> </div> <div id="mainbodysearch"> <?php $type=($_GET['type']=="") ? "" : "type = '{$_GET['type']}' AND"; $bedrooms=$_GET['bedrooms']; $maxprice= ($_GET['maxprice']=="") ? "" : "maxprice < '{$_GET['maxprice']}' AND"; $area=$_GET['area']; //connect to mysql //change user and password to your mySQL name and password mysql_connect("******","********","*****"); //select which database you want to edit mysql_select_db("*****"); //get the mysql and store them in $result //change whatevertable to the mysql table you're using //change whatevercolumn to the column in the table you want to search $result = mysql_query("SELECT * from properties WHERE $type bedrooms >= '$bedrooms' AND $maxprice area LIKE '$area' ORDER BY maxprice"); //how many properties found $number=mysql_num_rows($result); echo "$number properties found"; echo "<br><br>"; if (mysql_num_rows($result) > 0) { //grab all the content while($r=mysql_fetch_array($result)) { $type=$r["type"]; $bedrooms=$r["bedrooms"]; $maxprice=$r["maxprice"]; $area=$r["area"]; $first_address=$r["first_address"]; $link=$r["link"]; $image=$r["image"]; $postcode=$r["postcode"]; $lease=$r["lease"]; $desc=$r["desc"]; //display the row echo "<table border='0' cellpadding='5' align='center' width='650' class='search'>"; echo "<tr>"; echo "<td width='100'><img src=\"" . $r["image"] . "\"></td>"; echo "<td colspan='5' valign='top'>$desc</td>"; echo "<td align='right'><a href=\"" . $r["link"] . "\"><img src=\"info.png" . "\" border=0 alt=\"" . "\"></a></td>"; echo "</tr>"; echo "<tr>"; echo "<td width='100' rowspan='2' align='center'><font size='3'><b>£$maxprice</b></font></td>"; echo "<td width='130' colspan='2' align='left'><b>No of Bedrooms:</b> $bedrooms</td>"; echo "<td width='130' colspan='2' align='left'><b>Location:</b> $area</td>"; echo "<td width='240' colspan='2' align='left'><b>Lease Type:</b> $lease</td>"; echo "</tr>"; echo "<td width='130' colspan='2' align='left'><b>Property Type:</b> $type</td>"; echo "<td width='130' colspan='2' align='left'><b>Street:</b> $first_address</td>"; echo "<td width='240' colspan='2' align='left'><b>Post Code:</b> $postcode</td>"; echo "</tr>"; echo "</table>"; echo "<br>"; }} else { echo "Sorry no properties were found using your search requirements, Please narrow your prefrences to return more results.<br><br>"; } ?> </div> <div id="searchbox"> <div id="searchbox1"><img src="sellingnav.jpg" width="120" height="200" /></div> <div id="searchbox1"><img src="buyingnav.jpg" width="120" height="200" /></div> </div> <div id="mainbodysearch1"> <div id="finder"><?php echo "<form id='form1' action='finderresults.php' method='get'>"; echo " <table width='608' border='0' cellpadding='1'>"; echo " <tr>"; echo " <td width='109'><legend>Type</legend></td>"; echo "<td width='100'><legend>Min. Bedrooms</legend></td>"; echo "<td width='88'><legend>Max. Price</legend></td>"; echo "<td width='120'><legend>Area [eg. basildon]</legend></td>"; echo "<td width='153'><legend></legend></td>"; echo "<td width='12'><legend> </legend></td>"; echo "</tr>"; echo "<tr>"; echo "<td><select name='type' id='select'>"; echo " <option value=''>Any</option>"; echo " <option value='house'>House</option>"; echo " <option value='flat'>Flat</option>"; echo " <option value='bungalow'>Bungalow</option>"; echo " <option value='mid'>Mid Terrace</option>"; echo " <option value='end'>End Terrace</option>"; echo " <option value='semi'>Semi Detached</option>"; echo " <option value='detached'>Detached</option>"; echo " <option value='cottage'>Cottage</option>"; echo " <option value='other'>Other</option>"; echo " </select></td>"; echo " <td><select name='bedrooms' id='select' value=' . $bedrooms . '>"; echo " <option value='1'>1 Bedroom</option>"; echo " <option value='2'>2 Bedrooms</option>"; echo " <option value='3'>3 Bedrooms</option>"; echo " <option value='4'>4 Bedrooms</option>"; echo " <option value='5'>5+ Bedrooms</option>"; echo " </select></td>"; echo " <td><select name='maxprice' id='select'>"; echo " <option value=''>Any</option>"; echo " <option value='50000'>£50,000</option>"; echo " <option value='100000'>£100,000</option>"; echo " <option value='150000'>£150,000</option>"; echo " <option value='200000'>£200,000</option>"; echo " <option value='250000'>£250,000</option>"; echo " <option value='300000'>£300,000</option>"; echo " <option value='350000'>£350,000</option>"; echo " <option value='400000'>£400,000</option>"; echo " <option value='450000'>£450,000</option>"; echo " <option value='500000'>£500,000 +</option>"; echo " </select></td>"; echo " <td><input type='text' name='area' id='label' /></td>"; echo " <td valign='middle'><input name='submit' type='submit' value='' class='submit'/></td>"; echo " <td> </td>"; echo " </tr>"; echo " </table>"; echo " </form>"; ?> </div> </div> <div id="footer"><a href="">Property Updates</a> | <a href="">HIP's</a> | <a href="">Recruitment</a> | <a href="">Privacy Policy</a> | <a href="">Site Map</a></div> </div> </body> </html>
-
hi i am looking for a piece of code so when my form is submitted and sent to my php page, i then want it to remember that information so i can make links to refresh the page and change the order of the results. as i have go it at the moment it all works how i want it to just when u click a link to change the order it forgets the users choices on the form and returns no results. any ideas?? here is my php and html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Price Property Services | Search Results</title> <link rel="stylesheet" type="text/css" href="pps.css" /> </head> <body id="background"> <div id="maincontainer"> <div id="mainheader"> <div id="logo"> <table width="780" border="0" class="table"> <tr> <td width="182"><img src="logo.gif" width="182" height="92" /></td> <td width="588" align="right"><img src="mainbanner.jpg" width="588" height="92" /></td> </tr> </table> </div> <div id="nav"> <ul id="nav"> <li id="thome"><a href="index.html" class="selected"></a></li> <li id="tprop"><a href="properties.html"></a></li> <li id="tabout"><a href="about.html"></a></li> <li id="tlegal"><a href="legal.html"></a></li> <li id="tfees"><a href="fees.html"></a></li> <li id="tterms"><a href="terms.html"></a></li> <li id="tcontact"><a href="contact.html"></a></li> <li id="tlinks"><a href="links.html"></a></li> </ul> </div> </div> <div id="mainbodysearch"> <?php $type= ($_GET['type']=="") ? "" : "type = '{$_GET['type']}' AND"; $bedrooms=$_GET['bedrooms']; $maxprice= ($_GET['maxprice']=="") ? "" : "maxprice < '{$_GET['maxprice']}' AND"; $area=$_GET['area']; //connect to mysql //change user and password to your mySQL name and password mysql_connect("mysql14.streamline.net","djjamiegee1","sosolid"); //select which database you want to edit mysql_select_db("djjamiegee1"); //get the mysql and store them in $result //change whatevertable to the mysql table you're using //change whatevercolumn to the column in the table you want to search $result = mysql_query("SELECT * from properties WHERE $type bedrooms >= '$bedrooms' AND $maxprice area LIKE '$area' ORDER BY maxprice"); switch ($_GET['bedrooms'] ) { case "price_asc": $query = 'SELECT * FROM properties WHERE $type bedrooms >= $bedrooms AND $maxprice area LIKE $area ORDER BY maxprice ASC'; break; case "price_desc": $query = 'SELECT * FROM from properties WHERE $type bedrooms >= $bedrooms AND $maxprice area LIKE $area ORDER BY maxprice DESC'; break; case "bedrooms_asc": $query = 'SELECT * FROM from properties WHERE $type bedrooms >= $bedrooms AND $maxprice area LIKE $area ORDER BY bedrooms ASC'; break; case "bedrooms_desc": $query = 'SELECT * FROM from properties WHERE $type bedrooms >= $bedrooms AND $maxprice area LIKE $area ORDER BY bedrooms DESC'; } echo '<a href="finderresults.php?sort=price_asc">Click here to sort by price ascending</a><br>'; echo '<a href="?sort=price_desc">Click here to sort by price descending</a><br>'; echo '<a href="finderresultse.php?sort=bedrooms_asc">Click here to sort by bedrooms ascending</a><br>'; echo '<a href="?sort=bedrooms_desc">Click here to sort by bedrooms descending</a><br>'; //how many properties found $number=mysql_num_rows($result); echo "$number properties found"; echo "<br><br>"; if (mysql_num_rows($result) > 0) { //grab all the content while($r=mysql_fetch_array($result)) { $type=$r["type"]; $bedrooms=$r["bedrooms"]; $maxprice=$r["maxprice"]; $area=$r["area"]; $first_address=$r["first_address"]; $link=$r["link"]; $image=$r["image"]; $postcode=$r["postcode"]; $lease=$r["lease"]; $desc=$r["desc"]; //display the row echo "<table border='0' cellpadding='5' align='center' width='650' class='search'>"; echo "<tr>"; echo "<td width='100'><img src=\"" . $r["image"] . "\"></td>"; echo "<td colspan='5' valign='top'>$desc</td>"; echo "<td align='right'><a href=\"" . $r["link"] . "\"><img src=\"info.png" . "\" border=0 alt=\"" . "\"></a></td>"; echo "</tr>"; echo "<tr>"; echo "<td width='100' rowspan='2' align='center'><font size='3'><b>£$maxprice</b></font></td>"; echo "<td width='120' colspan='2' align='left'><b>No of Bedrooms:</b> $bedrooms</td>"; echo "<td width='130' colspan='2' align='left'><b>Location:</b> $area</td>"; echo "<td width='250' colspan='2' align='left'><b>Lease Type:</b> $lease</td>"; echo "</tr>"; echo "<td width='120' colspan='2' align='left'><b>Property Type:</b> $type</td>"; echo "<td width='130' colspan='2' align='left'><b>Street:</b> $first_address</td>"; echo "<td width='250' colspan='2' align='left'><b>Post Code:</b> $postcode</td>"; echo "</tr>"; echo "</table>"; echo "<br>"; }} else { echo "<font size='3'>Sorry no properties were found using your search requirements, Please narrow your prefrences to return more results.</font><br><br>"; } ?> </div> <div id="searchbox"> <div id="searchbox1"><img src="sellingnav.jpg" width="120" height="200" /></div> <div id="searchbox1"><img src="buyingnav.jpg" width="120" height="200" /></div> </div> <div id="mainbodysearch1"> <div id="finder"> <form id="form1" action="finderresults.php" method="get"> <table width="608" border="0" cellpadding="1"> <tr> <td width="109"><legend>Type</legend></td> <td width="100"><legend>Min. Bedrooms</legend></td> <td width="88"><legend>Max. Price</legend></td> <td width="120"><legend>Area [eg. basildon]</legend></td> <td width="153"><legend></legend></td> <td width="12"><legend> </legend></td> </tr> <tr> <td><select name="type" id="select"> <option value="">Any</option> <option value="house">House</option> <option value="flat">Flat</option> <option value="bungalow">Bungalow</option> <option value="mid">Mid Terrace</option> <option value="end">End Terrace</option> <option value="semi">Semi Detached</option> <option value="detached">Detached</option> <option value="cottage">Cottage</option> <option value="other">Other</option> </select></td> <td><select name="bedrooms" id="select"> <option value="1">1 Bedroom</option> <option value="2">2 Bedrooms</option> <option value="3">3 Bedrooms</option> <option value="4">4 Bedrooms</option> <option value="5">5+ Bedrooms</option> </select></td> <td><select name="maxprice" id="select"> <option value="">Any</option> <option value="50000">£50,000</option> <option value="100000">£100,000</option> <option value="150000">£150,000</option> <option value="200000">£200,000</option> <option value="250000">£250,000</option> <option value="300000">£300,000</option> <option value="350000">£350,000</option> <option value="400000">£400,000</option> <option value="450000">£450,000</option> <option value="500000">£500,000 +</option> </select></td> <td><input type="text" name="area" id="label" /></td> <td valign="middle"><input name="submit" type="submit" value="" class="submit"/></td> <td> </td> </tr> </table> </form> </div> </div> <div id="footer"><a href="">Property Updates</a> | <a href="">HIP's</a> | <a href="">Recruitment</a> | <a href="">Privacy Policy</a> | <a href="">Site Map</a></div> </div> </body> </html> many thanks
-
hi i am still new to this but i just tested your code and from what i have picked up is that if you have multiple words then when it reaches the end of the column it will break that new word to a new link but if the word is really long then it cant split the word up so it has no option to extend the table. i have tried fixing it with other solutions and css but i have had no luck. jamie
-
post your code and ill take a look jamie
-
hiya thanks for that i get it now the only problem i am coming across now is when i click a link say price assending it refreshs the page to change the order but i then lose the data the person submitted on the form so it then returns no results. so i need something to keep those results but i dont know what. thanks jamie