<p>Hi All<br>I have a form. Form contains a text field and a search button.</p>
<p>When user clicks search button, I redirect to a page "resume_search/skill_based_search"</p>
<p>Corresponding hook_form code.</p>
<p> $form['search']['skill'] = array(<br> '#type' => 'textfield',<br> '#title' => t('Enter skill set'),<br> '#required' => FALSE,<br> '#description' => "Example: PHP, HTML, MySQL, VoIP, SNMP",<br>
'#size' => 50,<br> '#maxlength' => 256,<br> );</p>
<p> $form['submit'] = array(<br> '#type' => 'submit',<br> '#value' => 'Search',<br> '#submit' => array('resume_search_submit'),<br> );</p>
<p>Corresponding hook_menu() code</p>
<p> $items['resume_search/skill_based_search'] = array(<br> 'title' => t('Search Result'),<br> 'page arguments' => array(1),<br> 'page callback' => 'resume_search_skill_based_search',<br>
'access arguments' => array('access content'),<br> 'type' => MENU_CALLBACK,<br> );</p>
<p> function resume_search_submit($form, &$form_state) <br> {<br> $form_state['redirect'] = 'resume_search/skill_based_search';<br> }</p>
<p>So from above code, when user clicks search button, resume_search_skill_based_search() is called and the page "<a href="http://localhost/livejobs1/?q=resume_search/skill_based_search">http://localhost/livejobs1/?q=resume_search/skill_based_search</a>" comes up.<br>
I want inside resume_search_skill_based_search(), the text entered by user in search textfield should be available.</p>
<p>I know, we need to pass the aguguments, but not clear how do I do this. Can somebody give me a high level input how data entered in a textfield is available in another page.</p>
<p>Best Regards<br>Austin </p>
<p> </p>