If you have ID Parameter in URL then try this Apex Code :
public Id oppid{get;set;}
Id id = apexpages.currentpage().getparameters().get(‘id’);
Moreover , If you want to read parameter in Visualforce the write in visualforce page :
<apex:inputField value=”{!$CurrentPage.parameters.Paramtervalue}“/>