Hi jason1178,
That seems like what I want to do but unfortunately I am not entirely fluent in PHP. I have been mostly using Dreamweaver's built in functions up till now. Is there an easy way to achieve the same results using Dreamweaver's (CS4) built in tools?
I will try and work with the code some more though and let you know how I get on.
Thank you.
Main Topics
Browse All Topics





by: jason1178Posted on 2009-10-27 at 18:51:39ID: 25679386
Hi alexking,
'] ?>" />
<?php echo rs_YourRecordSet['columnID '] ?>">Click here for item details</a>
>> I could not figure out how to implement a Form variable...
A Form Variable is any field in a form that is posted to PHP. So:
<form method="post" action="somepage.php">
<input type="hidden" name="itemlookup" value="<?php echo rs_YourRecordSet['columnID
<input type="submit" name="button" id="button" value="Submit" />
</form>
would create a form in the repeating region that sets a hidden field with the key for the item. When the user clicks the submit button, the Form Variable "itemlookup" is available to filter the recordset on somepage.php.
In pure PHP terms, Form Variables are simply values in the $_POST array:
$_POST['itemlookup']
----
>> Hyperlink in a Repeater in Dreamweaver CS4 using PHP
So if you want to do this in a hyperlink instead of a form, you are now using the URL Variables according to Dreamweaver:
<a href="somepage.php?itemID=
The above would populate the $_GET array.