error problem

Reply

Join Date: Oct 2009
Posts: 11
Reputation: pushpakalpana is an unknown quantity at this point 
Solved Threads: 1
pushpakalpana pushpakalpana is offline Offline
Newbie Poster

error problem

 
0
  #1
Nov 4th, 2009
hello...

i am doing shopping cart. in that there is billing address is there and shipping address is there. in there between "copy" link is there. when that page is loading "billing address fields comming and 'copy' link is also comming. but shipping address fields are not comming. after 'copy' link bellow error occuring. billing address , copy link, shipping address fields are in one form. plz solve my prblm.

"HTTP/1.1 200 OK Date: Wed, 04 Nov 2009 05:13:59 GMT Server: Apache/2.0.55 (Win32) PHP/5.1.4 X-Powered-By: PHP/5.1.4 Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Keep-Alive: timeout=15, max=97 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html 1200d "
Last edited by pushpakalpana; Nov 4th, 2009 at 1:23 am.
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 557
Reputation: network18 is an unknown quantity at this point 
Solved Threads: 64
network18 network18 is offline Offline
Posting Pro

html headers echoed

 
0
  #2
Nov 4th, 2009
Originally Posted by pushpakalpana View Post
hello...

i am doing shopping cart. in that there is billing address is there and shipping address is there. in there between "copy" link is there. when that page is loading "billing address fields comming and 'copy' link is also comming. but shipping address fields are not comming. after 'copy' link bellow error occuring. billing address , copy link, shipping address fields are in one form. plz solve my prblm.

"HTTP/1.1 200 OK Date: Wed, 04 Nov 2009 05:13:59 GMT Server: Apache/2.0.55 (Win32) PHP/5.1.4 X-Powered-By: PHP/5.1.4 Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Keep-Alive: timeout=15, max=97 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html 1200d "
I suspect these are the html headers echoed by your browser and the succeeding exit.
Post your this part of the code.
"The discipline of writing something down is the first step towards making it happen."

follow me on twitter
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 11
Reputation: pushpakalpana is an unknown quantity at this point 
Solved Threads: 1
pushpakalpana pushpakalpana is offline Offline
Newbie Poster
 
0
  #3
Nov 4th, 2009
Originally Posted by network18 View Post
I suspect these are the html headers echoed by your browser and the succeeding exit.
Post your this part of the code.
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 557
Reputation: network18 is an unknown quantity at this point 
Solved Threads: 64
network18 network18 is offline Offline
Posting Pro
 
0
  #4
Nov 4th, 2009
Originally Posted by pushpakalpana View Post
hello...
'copy' link is also comming. but shipping address fields are not comming. after 'copy' link bellow error occuring."
code for copy link?
"The discipline of writing something down is the first step towards making it happen."

follow me on twitter
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 11
Reputation: pushpakalpana is an unknown quantity at this point 
Solved Threads: 1
pushpakalpana pushpakalpana is offline Offline
Newbie Poster
 
0
  #5
Nov 4th, 2009
Originally Posted by network18 View Post
code for copy link?
  1. <script language="javascript">
  2. function copy()
  3. {
  4. window.document.formx.name1.value=window.document.formx.name.value;
  5. window.document.formx.lastname1.value=window.document.formx.lastname.value;
  6. window.document.formx.address21.value=window.document.formx.address1.value;
  7. window.document.formx.bemail.value=window.document.formx.semail.value;
  8.  
  9. if(window.document.formx.state1.value!='')
  10. {
  11. window.document.formx.state3.value=window.document.formx.state1.value;
  12. }
  13. else
  14. {
  15. window.document.formx.state3.value=window.document.formx.state.value;
  16. }
  17. window.document.formx.zip1.value=window.document.formx.zip.value;
  18. window.document.formx.country1.value=window.document.formx.country.value;
  19. window.document.formx.phone1.value=window.document.formx.phone.value;
  20. }
  21. </script>
i wrote in java script . copy button calling this function.
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 557
Reputation: network18 is an unknown quantity at this point 
Solved Threads: 64
network18 network18 is offline Offline
Posting Pro
 
0
  #6
Nov 4th, 2009
Do not find anything wrong with this function,until you have all the element s always in the html when you call this function. but where does it gets called.
"The discipline of writing something down is the first step towards making it happen."

follow me on twitter
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 11
Reputation: pushpakalpana is an unknown quantity at this point 
Solved Threads: 1
pushpakalpana pushpakalpana is offline Offline
Newbie Poster
 
0
  #7
Nov 4th, 2009
Originally Posted by network18 View Post
Do not find anything wrong with this function,until you have all the element s always in the html when you call this function. but where does it gets called.
k. see this . this is totally in one form.
  1. <table >
  2.  
  3. <tr>
  4. <td height="20" align="left" colspan="2"valign="middle" bgcolor="#C2E1FE" class="normal_text_bold2">Shipping Information</span> </td>
  5. </tr>
  6.  
  7. <tr>
  8. <td width="229"height="25" align="right" valign="middle" class="inner_product_text">First Name : </td>
  9. <td height="25" align="left" valign="middle"><input name="name" type="text" class="form_1" size="30" value="<?=$sqlfetcharray2[firstname]?>" tabindex="1" /></td>
  10. </tr>
  11. <tr>
  12. <td width="229" height="25" align="right" valign="middle" class="inner_product_text">Last Name : </td>
  13. <td height="25" align="left" valign="middle"><input name="lastname" type="text" class="form_1" size="30" value="<?=$sqlfetcharray2[lastname]?>" tabindex="2" /></td>
  14. </tr>
  15. <tr>
  16. <td width="229" height="25" align="right" valign="middle" class="inner_product_text"> Address : </td>
  17. <td height="25" align="left" valign="middle"><input name="address1" type="text" class="form_1" size="30" tabindex="3" value="<?=$sqlfetcharray2[address]?>"/></td>
  18. </tr>
  19. <tr>
  20. <td width="229" height="25" align="right" valign="middle" class="inner_product_text">Email Id : </td>
  21. <td height="25" align="left" valign="middle"><input name="semail" type="text" class="form_1" size="30" value="<?=$sqlfetcharray2['emailid']?>" tabindex="4" /></td>
  22. </tr>
  23. <tr>
  24. <td width="229" height="25" align="right" valign="middle" class="inner_product_text">Country :</td>
  25. <td height="25" align="left" valign="middle"><table width="50%" border="0" align="left" cellpadding="0" cellspacing="0">
  26.  
  27. <tr>
  28. <td width="50%" height="25" align="left" valign="middle"><select name="country" onchange="changeState()">
  29. <option value="" selected="selected">--select--</option>
  30. <?php
  31. if($sqlfetcharray2['country'])
  32. {
  33. ?>
  34. <option value="<?=$sqlfetcharray2['country']?>" selected="selected">
  35. <?=$sqlfetcharray2['country']?>
  36. </option>
  37. <? }
  38.  
  39. foreach($totalcountry as $val){ if($val!=$sqlfetcharray2['country']) { ?>
  40. <option value="<?=$val?>">
  41. <?=$val?>
  42. </option>
  43. <?php } }?>
  44. </select></td>
  45. </tr>
  46.  
  47. </table></td>
  48. </tr>
  49. <tr>
  50. <td width="229" height="25" align="right" valign="middle" class="inner_product_text">State :</td>
  51. <td height="25" align="left" valign="middle"><table width="50%" border="0" align="left" cellpadding="0" cellspacing="0">
  52. <tr>
  53. <td align="left" id="display" style="display:none;"><select name="state" id="state" class="select" >
  54. <option value="" selected="selected">--select--</option>
  55. </select></td>
  56. <td align="left" id="display1" style="display"><input type="text" name="state1" size="30" value="<?=$sqlfetcharray2['state']?>" /> </td>
  57. </tr>
  58. </table></td>
  59. </tr>
  60. <tr>
  61. <td width="229" height="25" align="right" valign="middle" class="inner_product_text">Zip Code :</td>
  62. <td height="25" align="left" valign="middle"><input name="zip" type="text" class="form_1" size="30" value="<?=$sqlfetcharray2['zipcode']?>"/></td>
  63. </tr>
  64. <tr>
  65. <td width="229" height="25" align="right" valign="middle" class="inner_product_text">Phone :</td>
  66. <td height="25" align="left" valign="middle"><input name="phone" type="text" class="form_1" size="30" maxlength="20" value="<?=$sqlfetcharray2['phoneno']?>" /></td>
  67. </tr>
  68.  
  69. </table></td>
  70. </tr>
  71. <tr>
  72. <td colspan="3" align="center" class="colorred10" valign="middle"><a href="javascript:copy();" tabindex="9"><img src="images/copy.png" border="0" /></a> </td>
  73. </tr>
  74. <tr>
  75. <td>&nbsp;</td>
  76. </tr>
  77.  
  78. <tr>
  79. <td height="274">
  80. <table width="100%" border="0" cellpadding="0" cellspacing="0" class="borders">
  81. <tr>
  82. <td width="229" height="1" align="left" valign="top" bgcolor="#1A76B9"></td>
  83. <td width="556" height="1" align="left" valign="middle" bgcolor="#1A76B9"></td>
  84. </tr>
  85. <tr>
  86. <td height="17" colspan="2" align="left" valign="middle" bgcolor="#C2E1FE" class="normal_text_bold2">Billing Information </td>
  87. </tr>
  88. <tr>
  89. <td height="3" align="left" valign="top" class="blue_top_borders">&nbsp;</td>
  90. <td height="3" align="left" valign="middle" class="blue_top_borders">&nbsp;</td>
  91. </tr>
  92. <tr>
  93. <td width="229" height="25" align="right" valign="middle" class="inner_product_text">Fist Name :</td>
  94. <td height="25" align="left" valign="middle"><input name="name1" type="text" class="form_1" size="30" value="<?=$sqlfetcharray2[firstname]?>" /></td>
  95. </tr>
  96. <tr>
  97. <td width="229" height="25" align="right" valign="middle" class="inner_product_text">Last Name : </td>
  98. <td height="25" align="left" valign="middle"><input name="lastname1" type="text" class="form_1" size="30" value="<?=$sqlfetcharray2[lastname]?>" /></td>
  99. </tr>
  100. <tr>
  101. <td width="229" height="25" align="right" valign="middle" class="inner_product_text">Address :</td>
  102. <td height="25" align="left" valign="middle"><input name="address21" type="text" class="form_1" size="30" value="<?=$sqlfetcharray2[address]?>"/></td>
  103. </tr>
  104. <tr>
  105. <td width="229" height="25" align="right" valign="middle" class="inner_product_text">Email Id : </td>
  106. <td height="25" align="left" valign="middle"><input name="bemail" type="text" class="form_1" size="30" value="<?=$sqlfetcharray2['emailid']?>" /></td>
  107. </tr>
  108. <tr>
  109. <td width="229" height="25" align="right" valign="middle" class="inner_product_text">Country : </td>
  110. <td height="25" align="left" valign="middle"><select name="country1" onchange="changeState1();">
  111. <option value="" selected="selected">--select--</option>
  112. <?php
  113. if($sqlfetcharray2['country'])
  114. {
  115. ?>
  116. <option value="<?=$sqlfetcharray2['country']?>" selected="selected">
  117. <?=$sqlfetcharray2['country']?>
  118. </option>
  119. <? } ?>
  120.  
  121. <?php /*?>foreach($totalcountry as $val){ if($val!=$sqlfetcharray2['country']) {?>
  122.   <option value="<?=$val?>">
  123.   <?=$val?>
  124.   </option>
  125.   <?php } }?><?php */?>
  126.  
  127. </select> </td>
  128. </tr>
  129. <tr>
  130. <td width="229" height="25" align="right" valign="middle" class="inner_product_text">State : </td>
  131. <td height="25" align="left" valign="middle"><table width="50%" border="0" align="left" cellpadding="0" cellspacing="0">
  132. <tr>
  133. <td align="left" id="display" style="display:none;"><select name="state2" id="state2" class="select" >
  134. <option value="" selected="selected">--select--</option>
  135. </select> </td>
  136. <td align="left" id="display2" style="display"><input type="text" name="state3" value="<?=$sqlfetcharray2['state']?>" size="30" /></td>
  137. </tr>
  138. </table></td>
  139. </tr>
  140. <tr>
  141. <td width="229" height="25" align="right" valign="middle" class="inner_product_text"> ZipCode : </td>
  142. <td height="25" align="left" valign="middle"><input name="zip1" type="text" class="form_1" size="30" value="<?=$sqlfetcharray2['zipcode']?>"/></td>
  143. </tr>
  144. <tr>
  145. <td width="229" height="22" align="right" valign="middle" class="inner_product_text">Phone :</td>
  146. <td height="22" align="left" valign="middle"><input name="phone1" type="text" class="form_1" size="30" maxlength="20" value="<?=$sqlfetcharray2['phoneno']?>" /></td>
  147. </tr>
  148. </table>
Last edited by pushpakalpana; Nov 4th, 2009 at 2:24 am.
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 557
Reputation: network18 is an unknown quantity at this point 
Solved Threads: 64
network18 network18 is offline Offline
Posting Pro
 
0
  #8
Nov 4th, 2009
what you doing after this code, there is no form in your html and no submit or any other button too.
"The discipline of writing something down is the first step towards making it happen."

follow me on twitter
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 11
Reputation: pushpakalpana is an unknown quantity at this point 
Solved Threads: 1
pushpakalpana pushpakalpana is offline Offline
Newbie Poster
 
0
  #9
Nov 4th, 2009
Originally Posted by network18 View Post
what you doing after this code, there is no form in your html and no submit or any other button too.
actually this total code is in one form. in that form last submit button is there.
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 11
Reputation: pushpakalpana is an unknown quantity at this point 
Solved Threads: 1
pushpakalpana pushpakalpana is offline Offline
Newbie Poster
 
0
  #10
Nov 4th, 2009
Originally Posted by pushpakalpana View Post
k. see this . this is totally in one form.
  1. <table >
  2.  
  3. <tr>
  4. <td height="20" align="left" colspan="2"valign="middle" bgcolor="#C2E1FE" class="normal_text_bold2">Shipping Information</span> </td>
  5. </tr>
  6.  
  7. <tr>
  8. <td width="229"height="25" align="right" valign="middle" class="inner_product_text">First Name : </td>
  9. <td height="25" align="left" valign="middle"><input name="name" type="text" class="form_1" size="30" value="<?=$sqlfetcharray2[firstname]?>" tabindex="1" /></td>
  10. </tr>
  11. <tr>
  12. <td width="229" height="25" align="right" valign="middle" class="inner_product_text">Last Name : </td>
  13. <td height="25" align="left" valign="middle"><input name="lastname" type="text" class="form_1" size="30" value="<?=$sqlfetcharray2[lastname]?>" tabindex="2" /></td>
  14. </tr>
  15. <tr>
  16. <td width="229" height="25" align="right" valign="middle" class="inner_product_text"> Address : </td>
  17. <td height="25" align="left" valign="middle"><input name="address1" type="text" class="form_1" size="30" tabindex="3" value="<?=$sqlfetcharray2[address]?>"/></td>
  18. </tr>
  19. <tr>
  20. <td width="229" height="25" align="right" valign="middle" class="inner_product_text">Email Id : </td>
  21. <td height="25" align="left" valign="middle"><input name="semail" type="text" class="form_1" size="30" value="<?=$sqlfetcharray2['emailid']?>" tabindex="4" /></td>
  22. </tr>
  23. <tr>
  24. <td width="229" height="25" align="right" valign="middle" class="inner_product_text">Country :</td>
  25. <td height="25" align="left" valign="middle"><table width="50%" border="0" align="left" cellpadding="0" cellspacing="0">
  26.  
  27. <tr>
  28. <td width="50%" height="25" align="left" valign="middle"><select name="country" onchange="changeState()">
  29. <option value="" selected="selected">--select--</option>
  30. <?php
  31. if($sqlfetcharray2['country'])
  32. {
  33. ?>
  34. <option value="<?=$sqlfetcharray2['country']?>" selected="selected">
  35. <?=$sqlfetcharray2['country']?>
  36. </option>
  37. <? }
  38.  
  39. foreach($totalcountry as $val){ if($val!=$sqlfetcharray2['country']) { ?>
  40. <option value="<?=$val?>">
  41. <?=$val?>
  42. </option>
  43. <?php } }?>
  44. </select></td>
  45. </tr>
  46.  
  47. </table></td>
  48. </tr>
  49. <tr>
  50. <td width="229" height="25" align="right" valign="middle" class="inner_product_text">State :</td>
  51. <td height="25" align="left" valign="middle"><table width="50%" border="0" align="left" cellpadding="0" cellspacing="0">
  52. <tr>
  53. <td align="left" id="display" style="display:none;"><select name="state" id="state" class="select" >
  54. <option value="" selected="selected">--select--</option>
  55. </select></td>
  56. <td align="left" id="display1" style="display"><input type="text" name="state1" size="30" value="<?=$sqlfetcharray2['state']?>" /> </td>
  57. </tr>
  58. </table></td>
  59. </tr>
  60. <tr>
  61. <td width="229" height="25" align="right" valign="middle" class="inner_product_text">Zip Code :</td>
  62. <td height="25" align="left" valign="middle"><input name="zip" type="text" class="form_1" size="30" value="<?=$sqlfetcharray2['zipcode']?>"/></td>
  63. </tr>
  64. <tr>
  65. <td width="229" height="25" align="right" valign="middle" class="inner_product_text">Phone :</td>
  66. <td height="25" align="left" valign="middle"><input name="phone" type="text" class="form_1" size="30" maxlength="20" value="<?=$sqlfetcharray2['phoneno']?>" /></td>
  67. </tr>
  68.  
  69. </table></td>
  70. </tr>
  71. <tr>
  72. <td colspan="3" align="center" class="colorred10" valign="middle"><a href="javascript:copy();" tabindex="9"><img src="images/copy.png" border="0" /></a> </td>
  73. </tr>
  74. <tr>
  75. <td>&nbsp;</td>
  76. </tr>
  77.  
  78. <tr>
  79. <td height="274">
  80. <table width="100%" border="0" cellpadding="0" cellspacing="0" class="borders">
  81. <tr>
  82. <td width="229" height="1" align="left" valign="top" bgcolor="#1A76B9"></td>
  83. <td width="556" height="1" align="left" valign="middle" bgcolor="#1A76B9"></td>
  84. </tr>
  85. <tr>
  86. <td height="17" colspan="2" align="left" valign="middle" bgcolor="#C2E1FE" class="normal_text_bold2">Billing Information </td>
  87. </tr>
  88. <tr>
  89. <td height="3" align="left" valign="top" class="blue_top_borders">&nbsp;</td>
  90. <td height="3" align="left" valign="middle" class="blue_top_borders">&nbsp;</td>
  91. </tr>
  92. <tr>
  93. <td width="229" height="25" align="right" valign="middle" class="inner_product_text">Fist Name :</td>
  94. <td height="25" align="left" valign="middle"><input name="name1" type="text" class="form_1" size="30" value="<?=$sqlfetcharray2[firstname]?>" /></td>
  95. </tr>
  96. <tr>
  97. <td width="229" height="25" align="right" valign="middle" class="inner_product_text">Last Name : </td>
  98. <td height="25" align="left" valign="middle"><input name="lastname1" type="text" class="form_1" size="30" value="<?=$sqlfetcharray2[lastname]?>" /></td>
  99. </tr>
  100. <tr>
  101. <td width="229" height="25" align="right" valign="middle" class="inner_product_text">Address :</td>
  102. <td height="25" align="left" valign="middle"><input name="address21" type="text" class="form_1" size="30" value="<?=$sqlfetcharray2[address]?>"/></td>
  103. </tr>
  104. <tr>
  105. <td width="229" height="25" align="right" valign="middle" class="inner_product_text">Email Id : </td>
  106. <td height="25" align="left" valign="middle"><input name="bemail" type="text" class="form_1" size="30" value="<?=$sqlfetcharray2['emailid']?>" /></td>
  107. </tr>
  108. <tr>
  109. <td width="229" height="25" align="right" valign="middle" class="inner_product_text">Country : </td>
  110. <td height="25" align="left" valign="middle"><select name="country1" onchange="changeState1();">
  111. <option value="" selected="selected">--select--</option>
  112. <?php
  113. if($sqlfetcharray2['country'])
  114. {
  115. ?>
  116. <option value="<?=$sqlfetcharray2['country']?>" selected="selected">
  117. <?=$sqlfetcharray2['country']?>
  118. </option>
  119. <? } ?>
  120.  
  121. <?php /*?>foreach($totalcountry as $val){ if($val!=$sqlfetcharray2['country']) {?>
  122.   <option value="<?=$val?>">
  123.   <?=$val?>
  124.   </option>
  125.   <?php } }?><?php */?>
  126.  
  127. </select> </td>
  128. </tr>
  129. <tr>
  130. <td width="229" height="25" align="right" valign="middle" class="inner_product_text">State : </td>
  131. <td height="25" align="left" valign="middle"><table width="50%" border="0" align="left" cellpadding="0" cellspacing="0">
  132. <tr>
  133. <td align="left" id="display" style="display:none;"><select name="state2" id="state2" class="select" >
  134. <option value="" selected="selected">--select--</option>
  135. </select> </td>
  136. <td align="left" id="display2" style="display"><input type="text" name="state3" value="<?=$sqlfetcharray2['state']?>" size="30" /></td>
  137. </tr>
  138. </table></td>
  139. </tr>
  140. <tr>
  141. <td width="229" height="25" align="right" valign="middle" class="inner_product_text"> ZipCode : </td>
  142. <td height="25" align="left" valign="middle"><input name="zip1" type="text" class="form_1" size="30" value="<?=$sqlfetcharray2['zipcode']?>"/></td>
  143. </tr>
  144. <tr>
  145. <td width="229" height="22" align="right" valign="middle" class="inner_product_text">Phone :</td>
  146. <td height="22" align="left" valign="middle"><input name="phone1" type="text" class="form_1" size="30" maxlength="20" value="<?=$sqlfetcharray2['phoneno']?>" /></td>
  147. </tr>
  148. </table>
Originally Posted by pushpakalpana View Post
actually this total code is in one form. in that form last submit button is there.
when i am removing javascript code is working with out error.
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC