Jump to content

[SOLVED] Small Help Request If Possible


LatinPrince

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/61568-solved-small-help-request-if-possible/
Share on other sites

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>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.