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
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>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.