Fix for Post Problem

  1. <?php
  2.  
  3. function xmd5form_form() {
  4.   $form['xmd5'] = array(
  5.     '#type' => 'textfield',
  6.     '#title' => t('Convert text to md5'),
  7.     '#default_value' => $object['xmd5'],
  8.     '#size' => 60,
  9.     '#description' => t('Add the text here to be converted to md5'),
  10.   );
  11.   $form['Submitx'] = array(
  12.     '#type' => 'submit',
  13.     '#default_value' => 'GO',
  14.     '#description' => t(''),
  15.   );
  16.   return $form;
  17. }
  18. function xmd5form_page(){
  19.   return drupal_get_form('xmd5form_form');;
  20. }
  21.   $xFinal = '';
  22.   global $_POST;
  23.   $xmd5 = $_POST['xmd5'];
  24.   $xFinal .= '<br />'.$xmd5.' in  md5 is <b>'.md5($xmd5).'</b><br />';
  25.   $xFinal .= xmd5form_page();

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.