• Since I have no idea how to work with jquery or Ajax I’m trying to create a edit option for a particular entry. By grabbing the $_POST data and echo’ing it in the relevant input placeholders on a following page I am hoping to circumvent my limited knowledge. ??

    I’ve seen it many times in plugins (multiple pages linking from one to the other but not listed as ‘pages’ or menu items) but I have no idea if I am supposed to create the pages load them externally or create them through some other method – submenu pages and functions (?).

    Any input or direction would be appreciated.

    Thanks in advance.

    [ No bumping please. ]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Snaphaan

    (@snaphaan)

    Let’s try to explain this differently:

    I have a form like so:

    <form type="" action ="" >
       // foreach loop for every entry...
          <label for="something">Some label</label>
          // echo some current values retrieved from DB
          <input type="submit" name="edit" "<?php echo esc_attr($_POST['edit']); ?>" />
      ... end loop
    </form>

    All my entries are displayed as a list on the plugin’s admin/setup page:

    // get * values from $wpdb and iterate through them:
    
    ------ ------------- --------- ----------- <edit button>
    ------ ------------- --------- ----------- <edit button>
    ------ ------------- --------- ----------- <edit button>
    ------ -------------- --------- ---------- <edit button>

    Right, so when I click the <edit button> I would like to be transferred to a new page where the current entry values are grabbed and displayed in <input and <textarea> boxes. So the person can change the values he needs to without copy and pasting each value again.

    That is why I need to connect to another page! To grab the values and create a new form field for upload.

    Make sense?

    It would have been great if the displayed text area could be transformed into a input area with the older entry displayed in each box! But I guess that requires some serious jquery or whatnot.

    What would be the best way to go about this? Do I need to call up a function, add a action=”to some page”?

    I’ve been at this for days and I can’t figure out what I’m supposed to do. I can think of a lot of looooong winded ways to go about it but I’m sure there should be more sufficient ways.

    Any help would be appreciated.

    Thread Starter Snaphaan

    (@snaphaan)

    ----              ----
    |some| ---------> |new |
    |link|            |page|
    |    |            |    |
     ----              ----
    
    My current        My new
    single            single
    plugin            plugin
    admin backend     backend
    page...           page...

    This is all I need.

    How do I go about doing this?

    Any advice, direction, just a hint would be enormously appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How would I link to a edit page from a plugin admin page?’ is closed to new replies.