The below code is used to send parameters from one visualforce page to another visualforce page.
Visualforce:
Visualforce:
<apex:outputlink value = “/apex/sample”>
<apex:param name = “msg” value = “hi”/>
</apex:outputlink>
Apex:
public String message = System.CurrentPagereference().getParameters().get(‘msg’);