Download & Extend

passing form fields to next page in drupal_goto()

Project:Multipage form controller
Version:6.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Issue tags:form values, get, goto, post

Issue Summary

how to pass field values of a form to next page and how to use them in next page with GET or POST method.After form submission iam redirecting it to next page using drupal_goto().I need to pass field values to next page using dis.Plz anyone kindly help me.

Comments

#1

The second argument of drupal_goto() is the query string.
http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_go...

But when you are developing a module,its better to use hooks like hook_form,hook_insert.

#2

Project:Values» Multipage form controller
Version:6.x-1.0» 6.x-1.x-dev
Component:Code» Miscellaneous
Category:task» support request
Priority:critical» normal
Assigned to:raghuram44» Anonymous

This is not a critical issue, nor it's in the relevant module issue queue. I suggest you take a look at the following modules:

Just a note, drupal_goto() will stop the flow of whatever is it that you are doing and is not the recommended way of redirecting after a form submit. Try $form_state['redirect'] in your submit hook.

nobody click here