I) goto
drupal_goto('sample/'.$xyz.'/'.$abc.'/'.$lmn);
where
- sample is the page where u have to navigate
- $xyz,$abc,$lmn are the variables you are passing to that page.
- You can either store values in variable and send them or do it directly by mentioning the value instead of the variable there
- You can also use this to simply navigate to same page or some other page even without using variables(make sure u don't use slash at the end)
II) a href (traditional method)
where
- @ means 'a'
- $abc is an variable
- User can give his own wordings instead of "Update General Details"
- When User Clicks on Update General Details , the page will be navigating to the sample page with the value.
- goto gets executed with the control reaches there.
- a href get executed only when the user cliks on it
-------------------------
https://amzn.to/44VdtxB
https://amzn.to/44VdtxB
No comments:
Post a Comment