Re: passing data thru link




"Michael Fesser" <netizen@xxxxxx> wrote in message
news:e79cm2dii8k9q8f1mphv967clvglkcd0ld@xxxxxxxxxx
.oO(MS)

<?PHP
echo "<a href='user_edit.php?id=".$row_dbUsers['id']."'>edit</a>";
?>

Any reason why you use concatenation instead of embedding the variables
directly into the string?

echo "<a href='user_edit.php?id=$row_dbUsers[id]'>edit</a>";

or

echo "<a href='user_edit.php?id={$row_dbUsers['id']}'>edit</a>";


No Reason other than my personal preference !!

MS


.



Relevant Pages

  • Re: Controlling Javascript from server side
    ... but five different language implementations here. ... 'true' means that the request must be handled asynchronously. ... There is exactly *no* reason for such a thing here. ... | percent-endoded string). ...
    (comp.lang.javascript)
  • Re: Is that a good design?
    ... I would have been able to reason the first gotcha. ... public string FirstName; ... has a reference architecture that shows the use of patterns. ... Public Shared Function GetUserInstance() As User ...
    (microsoft.public.dotnet.framework)
  • Re: packagemaker script assistance needed.
    ... Is there a reason you're conditionalizing the whole block instead of one ... string will do as you want.) ...
    (comp.sys.mac.programmer.help)
  • Re: Allow Zero Length String Property - 2000 vs 2003
    ... Well, if that was the reason, I believe my second point still stands - ... Web Interfaces do empty strings. ... > "Brendan Reynolds" <brenreyn at indigo dot ie> wrote in message ... >> Are you the same person who posted the 'Allow Zero Length String in MS ...
    (microsoft.public.access.tablesdbdesign)
  • Re: a method to make js have the ability to inherit
    ... but without the implied type-conversion of the string ... that uses the name of a specific constructor. ... programmer has no idea at all what types of object they are ... no reason for ever doing so. ...
    (comp.lang.javascript)