Passing POST variables through to another form

Passing POST variables through to another form, a forum discussion on Jojo CMS. Join us for more discussions on Passing POST variables through to another form on our Plugin Support forum.

Back to Forum Index : Back to Plugin Support   RSS
Guest

12 Mar 2009
Posts:

Hi there
I'm having some trouble passing POST variables from a signup form i've made.
Trying to get my signup form to get data, clean data up ready to post the variables to /register/ (JOJOs register plugin). Then jojo_register should redirect back to my form.

I just don't know how to do it, i've played with cURL to no avail.
damien damien

12 Mar 2009
Posts: 24

Guest said...
Hi there
I'm having some trouble passing POST variables from a signup form i've made.
Trying to get my signup form to get data, clean data up ready to post the variables to /register/ (JOJOs register plugin). Then jojo_register should redirect back to my form.

I just don't know how to do it, i've played with cURL to no avail.

This was me by the way
tom

Developer

tom

12 Mar 2009
Posts: 379

your sign up form should generate posts that are accessible through $_POST['inputname']

just remember to to do input validation on them if you are sending the output back for rendering (to prevent xss hacks) or on to mysql

you should be able to then call register.phps functions directly, or replicate them in your signup processing to get the data through, rather than trying to post them back to the register plugin.

can you post the code here for the signup form and that you're using to process the form?
Harvey

Core Developer

Harvey

13 Mar 2009
Posts: 327

I'm currently making *wholesale* changes to how the register / user profile system works, so if you are lucky I may be resolving your problem.

I'm making changes that allow cleaner customisation of the register form and user profile form. Basically, it allows you to add your own extra fields and choose what shows on the form and in what order. You can also remove some of the fluff fields if you want a quick and simple registration process.

It also allows you to mark certain fields as being 'private', which means they won't be displayed on the public user profile page. Mainly for letting people hide their street address but show their country, that sort of thing.

The extra fields are controlled using the existing fielddata system - ie the error checking is taken care of by the Jojo field objects rather than custom coding in register.php like it is currently.

I'll be updating the SVN in the next day or 2, though don't expect the code to be stable straight away. My deadline for this project is 31 March, so it will be stable by then.
Back to Forum Index : Back to Plugin Support   RSS
You must be logged in to post a reply



You need to Register or Log In before posting on these forums.