Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Not sending $_POST infor to server

  • 2 majibu
  • 1 ana tatizo hili
  • 3 views
  • Last reply by Col_Boogie

more options

In HTML code have below: <form name='ReGenHtml' action='Gen2.php' method='post' enctype='multipart/form-data'>

https://files.hostinger.com/
InputDescrition of input
<input type='file' name='Orginal' required>html file generated by open office
<input type='text' name='title' maxlength='40'> Title (label) for Browser tab
<input type='text' name='Page_w' maxlength='8' value='8.5in' onchange='chk_w()' required> * Width of printed page as 8.5in (8.5 inches) or 21cm (210 centimeters = 210 milimeters)
<input type='text' name='Font_sz' maxlength='4' value='10' onchange='chk_Fs()' required>pt * Default font size
<input type='text' name='font_n' onchange='chk_f()' required='true'> * default font (may enter as first choice, second, choice, etc.
<input type='submit' value='Regenerate' onclick='return verify()'> Click when ready to regenerate html code

On Server, have PHP code below: $Font_Sz=$_POST['Font_sz'].'pt'; $font_n=$_POST['font_n'];

The following errors are reported: Notice: Undefined index: Font_sz in /home/u548328498/public_html/Howard/Open/Gen2.php on line 18 Notice: Undefined index: font_n in /home/u548328498/public_html/Howard/Open/Gen2.php on line 19

This error does not occur on IE or Chrome

In HTML code have below: <form name='ReGenHtml' action='Gen2.php' method='post' enctype='multipart/form-data'> <table> <tr> <th>Input</th><th>Descrition of input</th></tr> <tr> <td><input type='file' name='Orginal' required></td><td>html file generated by open office</td></tr> <tr> <td><input type='text' name='title' maxlength='40'></td> <td>Title (label) for Browser tab</td></tr> <tr> <td><input type='text' name='Page_w' maxlength='8' value='8.5in' onchange='chk_w()' required></td> <td>* Width of printed page as 8.5in (8.5 inches) or 21cm (210 centimeters = 210 milimeters)</td></tr> <tr> <td><input type='text' name='Font_sz' maxlength='4' value='10' onchange='chk_Fs()' required>pt</td> <td>* Default font size</td></tr> <tr> <td><input type='text' name='font_n' onchange='chk_f()' required='true'></td> <td>* default font (may enter as <i>first choice, second, choice, etc.</i></td><tr>https://files.hostinger.com/ <tr> <td><input type='submit' value='Regenerate' onclick='return verify()'></td> <td>Click when ready to regenerate html code</td></tr> </table> On Server, have PHP code below: $Font_Sz=$_POST['Font_sz'].'pt'; $font_n=$_POST['font_n']; The following errors are reported: Notice: Undefined index: Font_sz in /home/u548328498/public_html/Howard/Open/Gen2.php on line 18 Notice: Undefined index: font_n in /home/u548328498/public_html/Howard/Open/Gen2.php on line 19 This error does not occur on IE or Chrome

Chosen solution

Could you check Firefox's developer tools for client-side errors, and to see what parameters are being sent to the server.

You could check for messages in Firefox's Web Console. You can open the Web Console in the lower part of the tab using either:

  • "3-bar" menu button > Web Developer > Web Console
  • (menu bar) Tools > Web Developer > Web Console
  • (Windows) Ctrl+Shift+k

Then reload the page in the upper part of the tab and watch for error or security messages. (The lines with blue triangles generally are not significant unless you suspect a style rule problem.) Anything that sounds like it could be relevant?

Switch to the Network mini-tab (Network Monitor) and check the box to Persist Logs. This will allow you to retain log data after submitting the form.

Submit the form, and click the POST on the Network Monitor to show the applicable request data on the right side. The "Params" panel should show what Firefox sent with the request.

Also, check the Console mini-tab for any new messages.

Anything useful?

Do you want to provide a link to a page demonstrating the problem?

See also: Where to go for developer support

Read this answer in context 👍 0

All Replies (2)

more options

Suluhisho teule

Could you check Firefox's developer tools for client-side errors, and to see what parameters are being sent to the server.

You could check for messages in Firefox's Web Console. You can open the Web Console in the lower part of the tab using either:

  • "3-bar" menu button > Web Developer > Web Console
  • (menu bar) Tools > Web Developer > Web Console
  • (Windows) Ctrl+Shift+k

Then reload the page in the upper part of the tab and watch for error or security messages. (The lines with blue triangles generally are not significant unless you suspect a style rule problem.) Anything that sounds like it could be relevant?

Switch to the Network mini-tab (Network Monitor) and check the box to Persist Logs. This will allow you to retain log data after submitting the form.

Submit the form, and click the POST on the Network Monitor to show the applicable request data on the right side. The "Params" panel should show what Firefox sent with the request.

Also, check the Console mini-tab for any new messages.

Anything useful?

Do you want to provide a link to a page demonstrating the problem?

See also: Where to go for developer support

more options

I must have fixed it by accident and forgot to refresh my browser. Sorry