Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter partmont

    (@partmont)

    all good i enjoy hacking away at this stuff.

    Thread Starter partmont

    (@partmont)

    thanks jo this was awesome help.

    Thread Starter partmont

    (@partmont)

    jo your the man thank you, it worked!!

    now i can expand this into my own great form thank you so much!!

    so excited right now thank you.

    so now that i have a plugin that works and saves i need to retrieve the info for the home page

    how would i get the info from setting one into my home.php file?

    this is my final step to have the whole site backend coded.!! so excited thanks for all your help man.

    Thread Starter partmont

    (@partmont)

    still getting the same issue i copy pasted just your code to set it up and build off, tested it in my admin when i press save it deletes the input in the text field. i switched themes back to 2012 and tried the plugin and still deletes the info i type in is there somewhere it is storing when it deletes it i thought the info should just stay in the field… thanks for your patience jo your my life line right now.

    Thread Starter partmont

    (@partmont)

    so i messed around with the simple add plug in function u gave me above. then i createda callback_settings.php and pasted the form inside of their. upon pressing submit i am redirected to my sites settings page.. anythoughts?

    this is the basic form that i am using.

    <html>
    <body>
    
    <form action="option.php" method="post">
    Name: <input type="text" name="fname">
    Age: <input type="text" name="age">
    <input type="submit">
    </form>
    
    </body>
    </html>

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    thanks
    peter

    and if you do get a chance to check out my last code and test it tonight i would be greatful. you have been such great help. thank you jo.

    Thread Starter partmont

    (@partmont)

    the home.php is where i want to display the form that was entered.

    Thread Starter partmont

    (@partmont)

    thank you for your prompt response Jo,

    So if i understand what you are saying is in your plugin folder you have an index.php

    with this function below?

    function callback_settings() {
    	include('callback_settings.php');
    }
    function callback_admin_actions() {
    	add_menu_page("Callback Request", "Callback Request", 1, "Callback Request", "callback_settings");
    }
    add_action('admin_menu', 'callback_admin_actions');

    then a seperate settings.php with the form inside of that php?

    so the index php call the settings the the menu page?

    then my next question is am i putting the get_option into the template page home.php?

    thanks for your patience.
    Peter

    Thread Starter partmont

    (@partmont)

    cheers mate worked great

Viewing 8 replies - 1 through 8 (of 8 total)