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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:50:36+00:00 2026-06-10T00:50:36+00:00

My form structure is like this in which fields[] input can be added any

  • 0

My form structure is like this in which fields[] input can be added any number of times at time of submission of form.Here i am storing website link in fields[] .

<input id="name" name="name" type="text" />
<input id="field_1" name="fields[]" type="text" />
<input id="field_2" name="fields[]" type="text" />
<input id="field_3" name="fields[]" type="text" />

I have managed to store this data in a MySQL database using the table structure below to allow a user to be associated with an unlimited number of websites:

Users       User_website_link     Websites
------      -----------------     ---------
Pk:UserID   Pk:ID               Pk:WebsiteId
name        UserID              Url
            WebsiteID

Let say user fills following data in form {“Jon”, “example.com”, “example1.com”, “example2.com” }

So after submitting form table would be looking like this:

User table:

UserID   Username
1         Jon

Websites Table:

WebsiteID      Url
1               example.com
2               example1.com
3               example3.com

User_website_link Table:

ID   UserID    WebsiteId
1     1         1
2     1         2
3     1         3

How should I allow the user to edit their URLs after submitting them?

So my question is: a user called John wants to delete example3.com and edit example.com to demo.com, So I want to know how to delete some websites from the database and edit some.

  • 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-10T00:50:38+00:00Added an answer on June 10, 2026 at 12:50 am

    You don’t need the user_website_link table – you can just put a UserID in another column in your websites table.

    But to answer the question:

    You do not need to edit entries, simply add another column that is something like boolean is_deleted and only display or use URLs that have the is_deleted as false. So you just let the user add an extra URL for editing, and just set the is_deleted when you delete them. Of course you could remove that row on deletion, or clear deleted ones later, but I think this method is slightly easier.

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

Sidebar

Related Questions

How best would I exclude results from #other_section, given a structure like this? <form>
my structure is like this: master page aspx(web form) ascx(user control) I have a
I have a structure like the following: <form> <input type=text /> <input type=text />
I have this structure on form, <input type=test value= id=username /> <span class=input-value>John Smith</span>
I have a simple html form that is structured something like this: <form name=test
I have a complex form in Ruby on Rails 2.3.5, here's the structure for
I have a complex input form within a PHP based web application. To structure
I've got this HTML form where I have multiple input elements: text, radio, and
I'm trying to build a Drupal site in which users can input records containing
response.sendRedirect(../seja/izpisknjig.jsp); the file in which I execute this line is index.jsp. the directory structure

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.