• Hello,

    This is probably something obvious, but this is my first wp/php work and I am trying to get up to speed. (Is this the right place for this?)

    I have a plugin that reads from a database table and displays the records in a list. The list has an edit link which displays a HTML form filled in with the record’s fields from the database.

    I am unsure of the best way to get the edit-form values into php in order to perform the sql UPDATE on the table. I don’t want to pass the values in the URL, right? What other options are there?

Viewing 1 replies (of 1 total)
  • Thread Starter jimfoltz

    (@jimfoltz)

    Ok, so I can just use method=”post” in the action, and point the action to my plugin’s form handler php file.

    Next problem is that I can’t use any of the wordpress functions in the form handler file. It’s like the handler file has no idea about wordpress.

    Not sure what I need to be doing. Any thoughts appreciated.

    I think I understand the wordpress way of doing things – define some functions in the plugin file, call the functions in templates. But it’s not clear how I can get html form values into the database using this model.

Viewing 1 replies (of 1 total)

The topic ‘First Post & Question’ is closed to new replies.