Customizable Member Pages

I have this litter management website where it keeps track of clients, litters, puppies, and more. I'm struggling on figuring out how to let new users make their own waitlist sign up forms (with their own custom fields) and displaying that new form data to their portals.

I'm familiar with mysql, php, ajax, html, css.

I'm not looking for any kind of "install and use" solution, as I'm very particular on things. I tried UserSpice but that was horrible for letting people sign up to a waitlist and get membership access at the same time, so I switched back to my own login system

Let me know if you need any clarification :)

1 answer

  • answered 2021-11-23 03:56 Yusuf Giovanno

    if what you mean is users can create their own field, ou can use two inputs or more to determine the desired field to append them to your html using JQuery. here's a little example:

    <input type="text" placeholder="Your Desired Field Name (please don't use space)" id="names">
    <select id="types">
        <option selected disabled>Your Desired Field Type</option>
        <option>text</option>
        <option>number</option>
        <option>date</option>
    </select>
    <button type="button" class="add">Add</button>
    
    <div id="fields"></div>
    
    <script>
        $(".add").click(function(){
                var name   = $("#names").val();
                var type   = $("#types option:selected").text();
    
                html = '';
    
                html += '<label>' + name + '</label>';
                html += '<input type="' + type + '" name="' + name + '">';
    
                $('#fields').append(html);
        });
    </script>
    

    But if what you mean is there are already forms for each type of user, you can simply add some hyperlinks to each of the forms depending on the user type like the following:

    <a href="/register-admin.php">Register Admin</a>
    <a href="/register-user.php">Register User</a>
    <a href="/register-other.php">Register Other</a>
    

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum