Jump to content

Recommended Posts

What I mean is how it works in Drupal. If you have the clean urls on it would show for registration something like example.com/user/register and for login something like example.com/user/login.

 

I am wondering how you can do this in PHP. I have looked through sections of Drupals core and have come across nothing helpful.

 

Any ideas are much appreciated.

Link to comment
https://forums.phpfreaks.com/topic/135957-how-to-make-page-request-using-a-url/
Share on other sites

Your message is a bit brief but I think that what you want is to rewrite URL's to give variables. I.e.

 

www.example.com/val1/val2 would be translated to www.example.com/index.php?var1=val1&var2=val2

 

To do this you need to use the .htaccess modrewrite functions. They are a bit tricky but there are loads of tutorials or someone on here may help you if you can give specifics.

 

Martin

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.