LatinPrince Posted July 24, 2007 Share Posted July 24, 2007 Hello everyone, New to this forum and php in general so if I say something that doesn't make any sense what so ever please excuse me. A friend of mine recently gave me a php script which parses information from a user from a database via php, but it requires a name at the end. This is where I'm sorta stuck I've tried googling for an answer but didn't come up with anything relevant. The url looks something like this: http://www.mysite.com/phpfile.php?name= after that it requires a name but to make it look semi decent and not asking our users to copy paste and add their names at the end I'd like to make a small php or html form where users can type in the name and after hitting search the front part of the url will be automatically generated along with the name the user puts in the search box. Again I'm very new to php and learning as I go along could someone please explain how I can go about doing such a thing? Quote Link to comment Share on other sites More sharing options...
yarnold Posted July 24, 2007 Share Posted July 24, 2007 Place this in a HTML document <form id='form' name='form' action='http://www.mysite.com/phpfile.php' method='get' enctype='multipart/form-data'> <input type='text' size='20' name='name' id='name' /> <input type='submit' value='Submit' id='submit' name='submit' /> </form> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.