 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
onimusha8666
Joined: 12 Jan 2005 Posts: 4
|
Posted: Wed Jan 12, 2005 11:57 am Help with a form... |
|
|
|
| Ok im in need of help. My uncle owns a clothing company for the disabled and he asked me if i could see if I could help him fix some forms on his site. His site administrator has it set up so he is able to edit items like listing thier description and sale price through a easy to understand form. All items are edited this way by my uncle. However, the forms for editing items recently stopped working. There were no major updates that would change the code of his site and he said that it just stoppeed working out of no where. What happens is when he goes to edit the item and makes the changes and then clicks "Submit", his changes do not take effect and are not saved. If he goes back to Edit then the item remains the same and a change is impossible. He asked me to help because i have a pretty decent knowledge of HTML since I had a popular website running for 3 years but it has been about 1 year since I have done anything. I really need some help here so he can fix his website. Any suggestions would be greatly apreciated. Could the cause of this be that something on the web has been updated or something that is not on his server? Anything you guys could come up with would be apreciated. I cam up with a few ideas about his form using CGI but I want to be able to have a little more in mind when i call him back. Once, again I would greatly apreciate help from anyone and all suggestions are welcome. All I can offer in return for help is a gmail account but I hope someone out there can help out of courtisy. I'll paste a copy of an example of what the form for editing an item looks like below. |
|
onimusha8666
Joined: 12 Jan 2005 Posts: 4
|
Posted: Wed Jan 12, 2005 11:58 am |
|
|
|
Heres what the form for editting any of the items would look like including the code for the rest of the page. I bolded the actual form part to make it easier:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Professional Fit Clothing</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>
<body bgcolor="#851313" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" link="#851313" vlink="#851313" alink="#851313">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="middle">
<td><font face="Verdana, Arial, Helvetica, sans-serif"><a name="top"></a><a href="index.php"><img src="../../images/top.gif" width="418" height="36" border="0" alt="Professional Fit"></a></font></td>
<td>
<form name="form1" method="post" action="http://www.professionalfit.com/cgi-bin/mycgi.pl">
<div align="right">
<select name="menu1" onChange="MM_jumpMenu('parent',this,1)">
<option selected>Navigate</option>
<option value=".">----------</option>
<option value="../../index.php">Home</option>
<option value="../../catalog/index.php">Catalog</option>
<option value="../../catalog/view_search.php">Search</option>
<option value=".">----------</option>
<option value="../../about.php">About Us</option>
<option value="../../colors.php">Colors</option>
<option value="../../size.php">Sizing</option>
<option value="../../orderform.pdf">Order Form</option>
<option value="../../order.php">Order Info</option>
<option value="../../press/index.php">News</option>
<option value="../../order.php#oi">Contact Us</option>
<option value=".">----------</option>
<option value="../../catalog/admin/index.php">Administration</option>
<option value=".">----------</option>
<option value="../../catalog/admin/item001.php">Add Item</option>
<option value="../../catalog/admin/item_edit.php">Edit Item</option>
<option value="../../catalog/admin/item_delete.php">Delete Item</option>
<option value="../../catalog/admin/item_order.php">Item Order</option>
<option value="../../catalog/admin/hotsellers.php">Hotsellers</option>
<option value="../../analog/index.php">Web Stats</option>
<option value="../../catalog/admin/count.php">Views</option>
<option value=".">----------</option>
<option value="../../catalog/admin/cat_add.php">Add Cat</option>
<option value="../../catalog/admin/cat_edit.php">Edit Cat</option>
<option value="../../catalog/admin/cat_delete.php">Delete Cat</option>
<option value=".">----------</option>
<option value="../../catalog/admin/size_add.php">Add Size</option>
<option value="../../catalog/admin/size_edit.php">Edit Size</option>
<option value="../../catalog/admin/size_delete.php">Delete Size</option>
</select>
</div>
</form>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#000000" height="5"><img src="../../images/black_spacer.gif" width="5" height="5" alt="Border"></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" background="../../images/back1.gif">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100" valign="top" bgcolor="#000000">
<p><font size="-1" face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF">Item
Setup</font></p>
<p><font size="-1" face="Verdana, Arial, Helvetica, sans-serif" color="#666666">Size/Price
Setup</font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="-1" color="#666666">Image
Setup</font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" color="#666666" size="-1">Finalize</font></p>
<p><a href="index.php"><font face="Verdana, Arial, Helvetica, sans-serif" size="+1" color="#FFFFFF">Home</font></a></p>
</td>
<td width="50" valign="top"> </td>
<td width="400">
<p> </p>
<form name="form1" method="post" action="../cgi-bin/mycgi.pl">
<table width="400" border="0" cellspacing="0" cellpadding="0" bgcolor="#851313">
<tr>
<td>
<table width="400" border="0" cellspacing="2" cellpadding="2">
<tr>
<td colspan="2"><font face="Verdana, Arial, Helvetica, sans-serif" size="+1" color="#FFFFFF">Item
Setup</font></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" width="135"><font face="Verdana, Arial, Helvetica, sans-serif" color="#000000">Item
Name</font></td>
<td bgcolor="#cccccc" width="236"> <font face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="name" size="40" maxlength="255" value="Bandito">
</font></td>
</tr>
<tr>
<td bgcolor="#ffffff" width="135"><font face="Verdana, Arial, Helvetica, sans-serif" color="#000000">Item
Number</font></td>
<td bgcolor="#cccccc" width="236"> <font face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="sku" size="40" maxlength="40" value="mf102">
</font></td>
</tr>
<tr>
<td bgcolor="#ffffff" width="135"><font face="Verdana, Arial, Helvetica, sans-serif" color="#000000">Category</font></td>
<td bgcolor="#cccccc" width="236"> <font face="Verdana, Arial, Helvetica, sans-serif">
<select name="cat"><option value="0">Please choose a Category</option><option value="6" selected>1*Clothing Protectors/Bibs</option><option value="3">2*Specialty Items</option><option value="1">3*Men's Clothes</option><option value="2">4*Women's Clothes</option><option value="7">5*Wheelchair Accessories and Gloves</option><option value="4">6*Sweats</option><option value="8">7*Incontinence Products</option><option value="5">8*Custom Alterations</option></select> </font></td>
</tr>
<tr>
<td bgcolor="#ffffff" width="135"><font face="Verdana, Arial, Helvetica, sans-serif" color="#000000">Description</font></td>
<td bgcolor="#cccccc" width="236"> <font face="Verdana, Arial, Helvetica, sans-serif">
<textarea name="dscr" cols="40" rows="5" wrap="VIRTUAL">Clothing protector bandana that has adjustable snap closures and terrycloth lining on the back. Protects clothing during dining.</textarea>
</font></td>
</tr>
<tr>
<td bgcolor="#ffffff" width="135"><font face="Verdana, Arial, Helvetica, sans-serif" color="#000000">Content</font></td>
<td bgcolor="#cccccc" width="236"> <font face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="cont" size="40" maxlength="255" value="100% Cotton">
</font></td>
</tr>
<tr>
<td bgcolor="#ffffff" width="135"><font face="Verdana, Arial, Helvetica, sans-serif" color="#000000">Colors<font size="-2"><br>
(Multiple colors seperated with comma)</font></font></td>
<td bgcolor="#cccccc" width="236"> <font face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="color" size="40" maxlength="255" value="Assorted Solids and Prints">
</font></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" width="135"><font face="Verdana, Arial, Helvetica, sans-serif" color="#000000">For
Sale</font></td>
<td bgcolor="#CCCCCC" width="236">
<input type="checkbox" name="sale" value="1" checked>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" width="135"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif">
<input type="hidden" name="action" value="submit">
<input type="hidden" name="id" value="17">
</font></td>
<td bgcolor="#CCCCCC" width="236"> <font face="Verdana, Arial, Helvetica, sans-serif">
<input type="submit" name="Submit" value="Submit">
</font></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<p align="center"><a href="item_edit.php"><font face="Verdana, Arial, Helvetica, sans-serif"><br>
Reload</font></a><font face="Verdana, Arial, Helvetica, sans-serif" color="#000000">
| </font><font face="Verdana, Arial, Helvetica, sans-serif"><a href="index.php">Home</a></font></p>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#000000" height="5"><img src="../../images/black_spacer.gif" width="5" height="5" alt="Border"></td>
</tr>
</table>
<div align="center">
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="-1" color="#FFFFFF">All
Images and Text Copyright 2000 © Professional Fit Clothing</font><font face="Verdana, Arial, Helvetica, sans-serif" size="-1"><br>
<font color="#FFFFFF">For more info, please email </font><a href="mailto:salesatprofessionalfit.com"><font color="#FFFF00">salesatprofessionalfit.com<br>
</font></a></font><font face="Verdana, Arial, Helvetica, sans-serif" size="-1" color="#FFFFFF">For
wholesale questions, please email</font><font face="Verdana, Arial, Helvetica, sans-serif" size="-1">
<a href="mailto:wholesaleatprofessionalfit.com"><font color="#FFFF00">wholesaleatprofessionalfit.com</font></a><br>
<font color="#FFFFFF">Please report any problems to </font><a href="mailto:webmasteratprofessionalfit.com"><font color="#FFFF00">webmasteratprofessionalfit.com
</font></a></font><br>
</p>
<p><font color="#851313" size="-2" face="Arial, Helvetica, sans-serif">Adaptive clothing, clothing for
the disabled, handicapped clothing, adult bibs, handicap clothing, disabled
clothing, full elastic waist pants, wheelchair clothing, adaptive apparel,
bibs, special needs clothing, apparel for the disabled, incontinence products,
elderly clothing, developmentally disabled clothing, Velcro clothing, flannel
pajamas, nightshirts, back snap clothing, wheelchair rain capes, alterations
for disabled,clothing protectors, shower capes, diabetic socks, Alzheimer
clothing, edema socks, clothing undressers</font></p>
</div>
</body>
</html> |
|
onimusha8666
Joined: 12 Jan 2005 Posts: 4
|
Posted: Wed Jan 12, 2005 5:28 pm |
|
|
|
| Ok i was messing around some omre and i found he is able to edit things like categories and other things just not hese items. Now i looked at the code and the actionpart was just action="". Now the items that he can't edit have the "item_edit.php" item in there. If he was to take the "item_edit.php" part and make it action="" would it possibly work? I am almost positive it has to do with ACTION but then again i still want a more experienced opinion. |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
|