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 7890629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:24:17+00:00 2026-06-03T06:24:17+00:00

I’ve got what I think is a simple problem but I’m having a tough

  • 0

I’ve got what I think is a simple problem but I’m having a tough time working out what the best strategy is and I hoping you could help.

I’m using CodeIgniter to build my new website (currently in dev), where users are able to create, edit and delete campaigns. And each campaign has a sub-campaign which the can also edit, delete and create each sub-campaign.

Whilst in the add campaign view, how do I (in pseudo code) mark the form (or session in a way where the sub campaign the user is creating gets assigned to the correct campaign. My thoughts at the moment are to either

(1) Use the id of the campaign within the url and pull the correct segment. For example http://www.website.com/campaign/12345/add-sub-campaign

or

(2) Inside the form element put the name of the campaign in a hidden input field, and grab that through the post and use that to link the new sub-campaign to the campaign.

Thanks for your help with this tedious question! I’d prefer just to do it the right way first time.

  • 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-06-03T06:24:18+00:00Added an answer on June 3, 2026 at 6:24 am

    You can use a URL schema like example.com/campaigns/add/234

    Here 234 is the parent campaign ID

    In your Campaign controller

    public function add($parent_id = ''){ //......}
    

    This saves you from using hidden field in the form as well

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

Sidebar

Related Questions

I got a little problem, it seems simple (personally I think it is), but
A problem I was working on recently got me to wishing that I could
I'm having a problem and I've got the feeling it is something simple that
I've got a pretty simple problem, but I've become clueless on what is causing
I've got a pretty simple problem, I think. I'm using WPF in Visual Basic
I've got what I think is a simple question. I've seen examples both ways.
I think I got all the steps down but I must be missing something
I have studied generators feature and i think i got it but i would
I'm having an interesting but difficult problem with my JavaScript code. Basically, I'm trying
Ok I got a strange issue that I hope someone could help with I

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.