Current location: Hot Scripts Forums » Programming Languages » PHP » php form won't display on Windows machine with ie


php form won't display on Windows machine with ie

Reply
  #1 (permalink)  
Old 05-27-08, 03:27 PM
cyberfolli cyberfolli is offline
Newbie Coder
 
Join Date: Jan 2004
Posts: 93
Thanks: 8
Thanked 0 Times in 0 Posts
php form won't display on Windows machine with ie

I have a modify form function that display's row's of data with a modify button for each row. it works fine on my mac with firefox and Safari " displays fields with info in fields" but on a PC when you hit modify it returns a blank page. does anyone know why this would be ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 05-27-08, 05:21 PM
mab's Avatar
mab mab is offline
Community VIP
 
Join Date: Oct 2005
Location: Denver, Co. USA
Posts: 2,674
Thanks: 0
Thanked 0 Times in 0 Posts
When a form operates differently in different browsers, it is usually because the HTML is invalid. Post your form code if you want help with it.
__________________
Error checking, error reporting, and error recovery. If your code does not have these to get it to tell you why it is not working, what makes you think someone in a programming forum will be able to tell you why it is not working???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 05-28-08, 09:14 AM
cyberfolli cyberfolli is offline
Newbie Coder
 
Join Date: Jan 2004
Posts: 93
Thanks: 8
Thanked 0 Times in 0 Posts
Code Post

This is the Form post link to display record for midification

Code:
<form action='admin_functions.php' method='post'> 
  <input name='modify_news' type='image' value='modify_news' src='modify.jpg' alt='Modify'>
<input type='hidden' name='newsIDnumber' value='$id'>
</form>
This is the modify page that I am using to display the fields

PHP Code:

function modify_news($newsIDnumber)
{    
beginHTML();
    print 
"<h4>Modify Entry</h4>";
        
//Retrieve the data from the _news that was selected to be modified or deleted
    
databaseConnect (&$conn, &$db_id);
    
$sql "select * from report where id = $newsIDnumber";
    
$result mysql_query($sql$conn);
    
$temp mysql_fetch_array($result);
    
        
//set the data to variables to be displayed as default values in their respective fields
            
        
$cfs $temp['cfs'];
        
$date_field $temp['date_field'];
        
$time_field $temp['time_field'];
        
$station $temp['station'];
        
$unit $temp['unit'];
        
$type $temp['type'];
        
$dispatch_time $temp['dispatch_time'];
        
$attendant $temp['attendant'];
        
$attendant_2 $temp['attendant_2'];
        
$attendant_3 $temp['attendant_3'];
        
$disposition $temp['disposition'];
        
$location $temp['location'];
        
$turnover $temp['turnover'];
        
$turned_in $temp['turned_in'];
            

        
//set up the page to display the values and have them modified if needed
    
print "<form action='admin_functions.php' enctype='multipart/form-data' method='post'>

<table width='750'  border='0' cellspacing='0' cellpadding='0'>
          <tr bgcolor='#CCCCCC'>
            <td width='152'>CFS</td>
            <td colspan='2'><input name='cfs' type='text' value='
$cfs' size='50'></td>
          </tr>
        
          <tr>
                  <td>Date Stamp</td>
                  <td width='251'>
                          <input name='date_field' type='text' id='date_field' value='
$date_field'  size='50'>
                  </td>
                   <td width='347'>&nbsp;</td>
        </tr>
          <tr bgcolor='#CCCCCC'>
            <td>Time Stamp</td>
            <td colspan='2'><input name='time_field' type='text' id='time_field' value='
$time_field'  size='50'></td>
          </tr>
          <tr>
            <td>Station</td>
            <td colspan='2'><input name='station' type='text' value='
$station'  size='50'></td>
          </tr>
          <tr bgcolor='#CCCCCC'>
            <td>Unit</td>
            <td colspan='2'><input name='unit' type='text' value='
$unit'  size='50'></td>
          </tr>
          <tr>
            <td>Type</td>
            <td colspan='2'><input name='type' type='text' id='type' value='
$type'  size='50'></td>
          </tr>
          <tr bgcolor='#CCCCCC'>
            <td>Dispatch Time</td>
            <td colspan='2'><input name='dispatch_time' type='text' id='dispatch_time' value='
$dispatch_time'  size='50'></td>
          </tr>
             <tr>
               <td>Attendant</td>
               <td colspan='2'><input name='attendant' type='text' value='
$attendant'  size='50'></td>
  </tr>
             <tr bgcolor='#CCCCCC'>
               <td>Attendant 2</td>
               <td colspan='2'><input name='attendant_2' type='text' value='
$attendant_2'  size='50'></td>
  </tr>
             <tr>
               <td>Attendant 3</td>
               <td colspan='2'><input name='attendant_3' type='text' id='attendant_3' value='
$attendant_3'  size='50'></td>
  </tr>
             <tr bgcolor='#CCCCCC'>
               <td>Disposition</td>
               <td colspan='2'><input name='disposition' type='text' id='disposition' value='
$disposition'  size='50'></td>
  </tr>
             <tr>
               <td>Location</td>
               <td colspan='2'><input name='location' type='text' id='location' value='
$location'  size='50'></td>
  </tr>     <tr>
               <td>Turnover</td>
               <td colspan='2'><input name='turnover' type='text' id='turnover' value='
$turnover'  size='50'></td>
  </tr>
       <tr>
               <td>Turned In</td>
               <td colspan='2'><input name='turned_in' type='text' id='location' value='
$turned_in'  size='50'></td>
  </tr>
  <tr>
            <td colspan='3'><input type='submit' name='doModify_news' value='Modify entry'>
              <input type='reset' value='Reset form'>
              <input type='hidden' name='newsIDnumber' value='
$newsIDnumber'>
              <input type='submit' value='Cancel' name='admin_newsDisplay'></td>
          </tr>
</table>
"
;
        
endHTML();


Last edited by Nico; 05-28-08 at 10:11 AM. Reason: Please use [php] wrappers when posting PHP code.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 05-28-08, 10:52 AM
mab's Avatar
mab mab is offline
Community VIP
 
Join Date: Oct 2005
Location: Denver, Co. USA
Posts: 2,674
Thanks: 0
Thanked 0 Times in 0 Posts
Read this on how to use an image as a submit button in all browsers - http://www.php.net/manual/en/faq.htm...tml.form-image
__________________
Error checking, error reporting, and error recovery. If your code does not have these to get it to tell you why it is not working, what makes you think someone in a programming forum will be able to tell you why it is not working???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 05-28-08, 11:04 AM
cyberfolli cyberfolli is offline
Newbie Coder
 
Join Date: Jan 2004
Posts: 93
Thanks: 8
Thanked 0 Times in 0 Posts
Your Kidding so if I use a normal input button it would work? I will try that over getting fancy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Contact Form Question jdsmith8 PHP 8 03-30-07 04:35 PM
display data based on form submission panqueconpasas PHP 4 02-27-06 10:19 PM
How to encrypt on Windows (C++) and decrypt in PHP? magmy PHP 0 01-27-06 03:15 AM
Installing PHP on Windows 2003 server NoMercy PHP 2 01-07-06 11:49 PM


All times are GMT -5. The time now is 09:15 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.