Gnub Posted March 14, 2007 Share Posted March 14, 2007 I've looked at this for around 30 min, can't seem to figure out where the problem is. echo "<TR><TD><a href=CreateQuote.php?Offer=$row[\"Row_No\"]Day=$row[\"revised_date\"]FromA=$row[\"Departure\"]ToA=$row[\"ArrivalPoint\"];>Quote</a></td>"; What this is doing is putting fields into a URL for another page. thanks in advance. Quote Link to comment Share on other sites More sharing options...
per1os Posted March 14, 2007 Share Posted March 14, 2007 echo "<TR><TD><a href=CreateQuote.php?Offer=".$row["Row_No"]."&Day=".$row["revised_date"]."&FromA=".$row["Departure"]."&ToA=".$row["ArrivalPoint"].">Quote</a></td>"; try that. --FrosT Quote Link to comment Share on other sites More sharing options...
papaface Posted March 14, 2007 Share Posted March 14, 2007 Should should really do it like this: echo '<TR><TD><a href="CreateQuote.php?Offer='.$row["Row_No"].'Day='.$row["revised_date"].'FromA='.$row["Departure"].'ToA='.$row["ArrivalPoint"].'">Quote</a></td>'; Quote Link to comment Share on other sites More sharing options...
Gnub Posted March 14, 2007 Author Share Posted March 14, 2007 Solutions worked, thanks gents. forgot about the "." Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted March 14, 2007 Share Posted March 14, 2007 When putting array references into a quoted string you either have to use concatenation or curly braces. The following shows using concatenation: <?php echo '<TR><TD><a href="CreateQuote.php?Offer=' . $row['Row_No'] . '&Day=' . $row['revised_date'] . '&FromA=' . $row['Departure'] . '&ToA=' . $row['ArrivalPoint'] . '">Quote</a></td>'; ?> I also fixed the "href" contents. Ken Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.