• I need to create a registration form that I can then process using PHP/mysql to update my tables (my own created as wp tables with a different name – they all start dp_ rather than wp_). What I can’t figure out how to do is get WordPress to allow me to process the actual php code to run with the post information from the registration page. Does anyone have a clue on how to do that?

    I was able to get some php code to work by setting it up as a template – but that was a stand alone page – just listing some data – but I can’t figure out how to get it to read and process the registration form request.

    I am currently writing the code outside of wp so that it will run. I would like to be able to use my wp themes in the php code – so that the processed output will be consistent with the rest of the site. The site is in a state of flux and so I don’t want to spend time on the “design” but rather just getting the code to work. I am also using the Catalyst and Dynamik themes if that matters.

    I am also using my own cookies (so I need to put some code at the top of the file to retrieve the cookie).

    Thanks/Hal

Viewing 2 replies - 1 through 2 (of 2 total)
  • Where are you having issues? I typically (it’s kind of hit or miss, depending on the point in the process) see $_POST variables getting clobbered.

    Maybe some more details including, what do you mean
    – “run with the post information”: is this referring to $_POST or a WP ‘post’
    – “read and process the registration form request”: admit that it exists?
    – “I am also using my own cookies”: for?

    Thread Starter hlamster

    (@hlamster)

    Rebecca:

    I created a registration page “Individual Registration” with
    the form command contained in it <form method=’post’ action=’doRegister’>
    I then created a dummy (i.e. empty) doRegister page with a template file template-doregister.php that contained the registration process. But I could not get the page to load. It tried to run “../register/doRegister” which of course isn’t there. I tried making the form link to “../doRegister” but that didn’t work either.

    In the template-doregister.php I had code such as
    $username = filter_input(INPUT_POST,”username”);
    and
    foreach ($_REQUEST as $fieldName => $value)
    { … )

    Thanks for your help.
    Hal

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘getting custom forms to work’ is closed to new replies.