Forum Moderators: coopster

Message Too Old, No Replies

Need help with PHP 'Submit'

When I click Submit on PC it works updates...

         

Cice

4:27 pm on Nov 12, 2008 (gmt 0)

10+ Year Member



the selected field, but when i click 'submit' on a macintosh, it jumps to the home page and the changes do not take. Is this a slight problem or do I need my programmer to fix it? I'm searching for solutions because I can't afford to pay him. I know a little about programming, so I hope I can do it with your help. Thanks!

supermanjnk

4:37 pm on Nov 12, 2008 (gmt 0)

10+ Year Member



are you using any kind of javascript? It would be helpful if you could post some of the code.

Cice

4:52 pm on Nov 12, 2008 (gmt 0)

10+ Year Member



Code:

Top:
<?
$query = tep_db_query("SELECT manufacturer_description FROM manufacturers_infoWHERE

manufacturers_id='".$manufacturers_id."'");
$artist = tep_db_fetch_array($query);
// print_r($artist);
require(DIR_WS_TEMPLATES . TEMPLATE_NAME .'/'.FILENAME_PAGE_HEADER);

$artistbio=$artist['manufacturer_description'];
?>

Main part:

<tr><td><table width="580" border="0">
<tr>
<td colspan=2 class="hreftext">
<?
if($msg)
echo "Your Hip-Hop Bio has been updated";
?>
</td>
</tr>
<tr>
<td colspan="2" class="normaltext">
Add/Change
Bio :
</td>
</tr>
<tr>
<!--td width="34%" class="normaltext"><a name="bio"/>Add/Change
Bio :<br/>
</td-->
<td colspan="2" class="normaltext">
<!--textarea name="bio" cols="70"

rows="10"><?//=$artist['manufacturer_description'];?></textarea-->
<?
echo tep_draw_textarea_field('bio', '', '20', '5',

"$artistbio",' style="width: 40%" mce_editable="true"');
?>
</font></td>
</tr>
</table></td></tr>
<tr>
<td colspan="2"></td>
</tr>

<tr>
<td colspan="2" class="normaltext"><div align="center">
<input type="submit" value="Submit" name="Submit"/>
<input type="reset" value="Reset" name="Submit2"/>
</div></td>

supermanjnk

8:55 pm on Nov 13, 2008 (gmt 0)

10+ Year Member



I don't see anything in there that looks out of the ordinary, but you haven't included the form action. Does it just submit to itself?