Jump to content

how to use ="<?php echo $_SERVER["PHP_SELF"] method="Post" >"


franknu

Recommended Posts

this is how i have it set up and it is giving me an parser error

 



echo"<tr><td> <table><tr> </tr>  </table>  </td></tr><tr><td></td>
  </tr><tr><td>  <table> <tr> <td><table bgcolor='ffffff'>
<tr> <td>

<table> ";


//208

<?php echo "<form action='". $_SERVER['PHP_SELF']. "' method='post'>";



echo"<tr>";

echo"<td> Busiess Info </td></tr><tr>
    <td>
    <table>
        <tr>
          <td>
          Business Name
          </td>
          <td>";

 

the error is Parse error: syntax error, unexpected '<' in /home/townsfin/public_html/authorization/Update_Page.php on line 206

 

Link to comment
https://forums.phpfreaks.com/topic/44999-how-to-use/
Share on other sites

Your entire code should be:

echo '<tr><td> <table><tr> </tr>  </table>  </td></tr><tr><td></td>
  </tr><tr><td>  <table> <tr> <td><table bgcolor="ffffff">
<tr> <td>

<table>';


//208

<?php echo '<form action="'. $_SERVER['PHP_SELF'].'" method="post">';



echo "<tr>";

echo "<td> Busiess Info </td></tr><tr>
    <td>
    <table>
        <tr>
          <td>
          Business Name
          </td>
          <td>";

Link to comment
https://forums.phpfreaks.com/topic/44999-how-to-use/#findComment-218447
Share on other sites

If You use this

<form action='' method='post' enctype='multipart/form-data'>

it will do the the same job of

<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method='post' enctype='multipart/form-data'>

and this will do the same job of

<form action='your_page.php' method='post' enctype='multipart/form-data'>

echo $_SERVER['PHP_SELF'] Actually prints the address of the current page.

so $_SERVER['PHP_SELF'] Is not required that much.Cause action='' will do the same job.

Link to comment
https://forums.phpfreaks.com/topic/44999-how-to-use/#findComment-218626
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.