close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

url parameter naming

Thread began 2/15/2013 6:50 am by john70964 | Last modified 2/15/2013 12:22 pm by john70964 | 773 views | 2 replies |

john70964

url parameter naming

I notice that when I create a link to a dynamic url sometimes it seems not to work with
the ID field name eg "RecordNumber"
When "RecordNumber" is the autoincrement record number

e.g. Detail.php?RecordNumber=<?php echo $row_rsQuick_Search['RecNo']; ?> would not find the record in one instance. Using "RecordNumber" usually does work OK

I tried
Detail.php?recordID=<?php echo $row_rsQuick_Search['recordID']; ?>
and this found the Record OK

Is it preferred to use the field name "RecordNumber"
or just use recordID.

Many thanks

John

Sign in to reply to this post

Jason ByrnesWebAssist

it depends on what URL Variable name the recordset is expecting.

if you create the link to pass the ID variable using the name RecordNumber, you need to make sure the recordset on the Detail.php page is looking for that URL variable name.

the key is to make sure the links and the recordset are using the same name for the URL variable. if the recordset is looking for the recordID URL variable and you pass it as RecordNumber, that wont work.

Sign in to reply to this post

john70964

I think I understand OK but can never remember using recordID on a detail page but have needed to use it in parameters twice.

I will now know what to look out for .

Many thanks
John

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...