I’m curious to why you want a form to output a link from a word that is input. I can’t help but feel that this may be a case for using GET, although I am not party to your intentions for the form.
Well I would like it to work where it returns the synonyms in one click and formats them nice. But I’m just using it to look up words when I’m writing product descriptions and when people do searches I can add synonyms for their searches in the admin section.
I just thought that if your intention was to take the user directly to the url, you could use the GET method, as it adds whatever variable from the form to the url.
Something like:-
It is not wise to use the $_GET variable on a form. Anyone who says otherwise supports legacy codes. You should forget this whole ?var= thing because anyone can change it to like ?var=This website uses legacy code and the webmaster of this website doesn't know a thing he is doing and then break your logic. Forms should always relate to $_POST, BUT not for form submission as many new beginners tend to do and just copy&always codes from 1990’s article. I am starting to dislike PHP for this fact. The people who’ve had x amount of years using PHP don’t want to help new users so they troll for their enjoyment and tell new users hat it’s ok to use legacy codes. And new users are too naive to do research on stuff.