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

  • Home
  • SEARCH
  • 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 6568137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:26:28+00:00 2026-05-25T14:26:28+00:00

I didn’t know how to ask professional so if topic is wrong, please correct

  • 0

I didn’t know how to ask professional so if topic is wrong, please correct it.

My problem is quite complicated. I was training on symfony webpage how to generate form and then send this data to another page.

But now i would like do something different. I would like create page xyzSuccess.php.
Then generate 29 links on this page. Each links would have its own number.
Each link would redirect to the same page. For example numberSuccess.php. After that, this site would give me data of the number which i clicked.

I will show the example 🙂

  • Page xyzSuccess.php have links, the third one is http://localhost:8080/web/number?nr=3
  • I click on it and i go to numberSuccess.php, the page give me number 3
  • After the page got number, also take from any datafile information under that number 3 ( i don’t know, maybe any file wchich can store symfony / array somewhere?.)

    I dont know how to do this, i don’t want use any database eq. *sql

    So far i created only page xyz.php which use php for loop. I see that action.class.php would work with it if i would use submit button, but i really dont have any idea how make this working with links. And… that problem with storing data 🙁 maybe create file in lib/form ?


    corrected the link to page (deleted success which used only in templates), guy under is right 🙂

    • 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-25T14:26:28+00:00Added an answer on May 25, 2026 at 2:26 pm

      First of all, you’re talking about URL’s like /web/numberSuccess… That probably means you’ve misconfigured the root. Also see this question, asked today.

      Then it’s common to give your actions names like number, and then in you’re actions file you have the executeNumber action, which then renders the numberSuccess template. So you shouldn’t include the Success in the action name/URL.

      Then, your question:
      What I would do, if you don’t want to use a database:

      • Create a file links.txt in your /data directory, and on every line create an url, followed by a space and then the title of your link.
      • In your list action open the this file using file_get_contents(), explode it on the newline-character, and assign this array to the view.
      • In your view loop through the array, use the array index as your number, and explode each item on the first space, so you can display the title.
      • In the view action your open and explode the links file again, and now you can pointer directly to the index, explode again and you have the URL.
      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
        • Report

    Sidebar

    Related Questions

    I didn't really know how to formulate the title. But this is my problem.
    I didn't really know how to phrase this question, its quite strange. I have
    I didn't see any similar questions asked on this topic, and I had to
    I didn't really know how to phrase the title of my questions, so my
    I didn't want to ask this as an 'answer' to A Question Someone Beat
    I didn’t know about the <button> tag until today.
    Didn't know how else to put this. Say I have a JavaScript method that
    Didn't even know how to exactly phrase this question, but here is the the
    I didn't ask how to learn JavaScript/Ajax/JQuery and god knows what else is out
    I didn't know how to Google this, it always came up with answers 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.