Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialjack churchill
Courses Plus Student 71 PointsCustom URL in get method for wordpress
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?
jack churchill
Courses Plus Student 71 Pointsjack churchill
Courses Plus Student 71 PointsI thought that it might be useful to be with treehouse and get ans for my questions but no use!!!! :(