partmont
Forum Replies Created
-
Forum: Hacks
In reply to: Submit button not saving settingsall good i enjoy hacking away at this stuff.
Forum: Hacks
In reply to: Submit button not saving settingsthanks jo this was awesome help.
Forum: Hacks
In reply to: Submit button not saving settingsjo 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.
Forum: Hacks
In reply to: Submit button not saving settingsstill 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.
Forum: Hacks
In reply to: Submit button not saving settingsso 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
peterand 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.
Forum: Hacks
In reply to: Submit button not saving settingsthe home.php is where i want to display the form that was entered.
Forum: Hacks
In reply to: Submit button not saving settingsthank 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.
Petercheers mate worked great