• ncbateman

    (@ncbateman)


    Im using “post back” for an admin function in my themes functions.php file. I cant work out why a simple post back breaks it…

    heres the code i think is the issue, form first, then the functions

    <form class="carousel_form" method="post">
    
    <input type="hidden" name="herp" class="input_custom" value="carousel_form_admin"/>
    
    <input type="text" name="derp" class="input_custom" placeholder="Number of posts to show"/>
    
    <input type="text" name="clam" class="input_custom" placeholder="Time on each slide in seconds"/>
    
    <input type="submit" value="save" class="save">
    
    </form>

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

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

    (@ncbateman)

    well now i cant even edit the post. This will help tremendously. people can look at the form and just guess the code behind it, that will work.

    Also, im posting the same question because all people seem to be able to do around here is fix sidebar errors. Where can i go to ask about the php behind wordpress? does anyone know why $_POST acting on an

    if ($_POST['var'] = 'value') {
    yourcode
    }

    would break the posting and image uploading functions of wordpress.

    Simple question, not spam, in the relevant fourum.

    – Nick

Viewing 1 replies (of 1 total)
  • The topic ‘Help $_POST is breaking the media uploader’ is closed to new replies.