944,050 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 480
  • PHP RSS
You are currently viewing page 1 of this multi-page discussion thread
Nov 4th, 2009
0

error problem

Expand 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 "
Last edited by pushpakalpana; Nov 4th, 2009 at 1:23 am.
Similar Threads
Reputation Points: 14
Solved Threads: 8
Newbie Poster
pushpakalpana is offline Offline
20 posts
since Oct 2009
Nov 4th, 2009
0

html headers echoed

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.
Reputation Points: 29
Solved Threads: 76
Practically a Master Poster
network18 is offline Offline
616 posts
since Sep 2009
Nov 4th, 2009
0
Re: error problem
Click to Expand / Collapse  Quote originally posted by network18 ...
I suspect these are the html headers echoed by your browser and the succeeding exit.
Post your this part of the code.
PHP Syntax (Toggle Plain Text)
  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" />
Reputation Points: 14
Solved Threads: 8
Newbie Poster
pushpakalpana is offline Offline
20 posts
since Oct 2009
Nov 4th, 2009
0
Re: error problem
hello...
'copy' link is also comming. but shipping address fields are not comming. after 'copy' link bellow error occuring."
code for copy link?
Reputation Points: 29
Solved Threads: 76
Practically a Master Poster
network18 is offline Offline
616 posts
since Sep 2009
Nov 4th, 2009
0
Re: error problem
Click to Expand / Collapse  Quote originally posted by network18 ...
code for copy link?
PHP Syntax (Toggle Plain Text)
  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.
Reputation Points: 14
Solved Threads: 8
Newbie Poster
pushpakalpana is offline Offline
20 posts
since Oct 2009
Nov 4th, 2009
0
Re: error problem
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.
Reputation Points: 29
Solved Threads: 76
Practically a Master Poster
network18 is offline Offline
616 posts
since Sep 2009
Nov 4th, 2009
0
Re: error problem
Click to Expand / Collapse  Quote originally posted by network18 ...
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.
PHP Syntax (Toggle Plain Text)
  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.
Reputation Points: 14
Solved Threads: 8
Newbie Poster
pushpakalpana is offline Offline
20 posts
since Oct 2009
Nov 4th, 2009
0
Re: error problem
what you doing after this code, there is no form in your html and no submit or any other button too.
Reputation Points: 29
Solved Threads: 76
Practically a Master Poster
network18 is offline Offline
616 posts
since Sep 2009
Nov 4th, 2009
0
Re: error problem
Click to Expand / Collapse  Quote originally posted by network18 ...
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.
Reputation Points: 14
Solved Threads: 8
Newbie Poster
pushpakalpana is offline Offline
20 posts
since Oct 2009
Nov 4th, 2009
0
Re: error problem
k. see this . this is totally in one form.
PHP Syntax (Toggle Plain Text)
  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>
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.
Reputation Points: 14
Solved Threads: 8
Newbie Poster
pushpakalpana is offline Offline
20 posts
since Oct 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: PHP Security Framework needed...
Next Thread in PHP Forum Timeline: Thumb an image





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC