• I had add this form in homepage of my theme

    <form action="" method="GET">
    	<label>NAME:</label>
    	<input type="text" name="name" id="name" required/>
    	<button>GET</button>
    </form>
    <?php
    
     if (isset($_GET['name'])){
    
    	$name = $_GET['name'];
    
      echo "hello".$name;}
    ?>

    and here I am getting url at top is

    example.com/?name=google

    and i want custom url as

    example.com/name/google

    so what should i do to get custom URL by get method?

  • The topic ‘Custom URL in get method’ is closed to new replies.