You need to sign in to do that
Don't have an account?

Create a vf page for account with name and phone as input fields,create submit button on that page
Create a vf page for account with name and phone as input fields, create submit button on that page . After giving the input values if we click the submit button if the record is the duplicate record then it should redirect to edit mode of the page.If it is new record then insert the record and redirect to edit mode of that record.
Below code can fulfill your requirements. Hope this will work for you.
<apex:page standardController="Account">
<apex:form>
<apex:pageBlock title="Edit Account">
<apex:pageBlockSection>
<apex:inputField value="{!Account.Name}"/>
<apex:inputField value="{!Account.Phone}"/>
</apex:pageBlockSection>
<apex:pageBlockButtons>
<apex:commandButton action="{!save}" value="Save" />
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>
Please mark this as best answer if this solves your problem.
Thank you,
Ajay Dubedi