Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 551125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:21:38+00:00 2026-05-13T11:21:38+00:00

Not sure if this can be done but it seems my main issue is

  • 0

Not sure if this can be done but it seems my main issue is because i have a default route to a method called “index.” I want to be able to list all users tagged with a specific keyword. In addition, users can search for other users based on these keywords.

i.e.
http://www.domain.com/tags/apples
http://www.domain.com/tags/oranges
http://www.domain.com/tags/blueberry

It works fine if I go to the URL manually. I’m having issues getting it to work with a form field.

Snippet of the form_open:

<?=form_open('tags/');?>

<p>Search for Tag: <input type="text" name="tag" /></p>    
<p><input type="submit" value="Search" /></p> 

Here’s a snippet of my controller:

function index() {
    $data['result'] = $this->tags_model->searchByTag($this->uri->segment(2));
    $this->load->view('tags_view', $data);
} 

Here’s a snippet of my router:

$route['tags'] = "tags/index";
$route['tags/(:any)'] = "tags/index/$1"; 

Now, I can easily fix all this if I have a method called search, but I don’t want the URL to show up as http://www.domain.com/tags/search/orange.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T11:21:38+00:00Added an answer on May 13, 2026 at 11:21 am

    I ended up redirecting the URL and passed the keyword into the URI.

    i.e. domain.com/tags/view/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am not sure this can be done at all... Background: I am constructing
I'm not sure this is possible, but in ruby, you can dynamically call a
Not sure if you can do this, but I want to select the first
Not sure if I can explain this correctly, but I am trying to execute
I'm pretty sure this can't be done in Oracle, but I'd love to be
Not sure if yall can help this time, as I'm just using this particular
Not sure why I'm getting this error and can't figure it out? The cycle
I am not sure if I can post this sort of question (apologies in
I am not professional programmer so i can not be sure about this.How many
Not sure why I can't figure this out. When a user makes a selection,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.