Quick fix needed
Posted: Thu Jul 30, 2009 3:45 pm
Im having trouble inputting the last part of information from my form.
This is the html part of the code:
This is the process part:
all the other posts work except for totalcost and i believe it has something to do with the way the total cost is created. Total cost is calculated from other inputs where as the other stuff like title/proof/min there all inputed by the user. so maybe i dont use $_POST for something what isnt inputted by the user? Well i hope i havnt confused you i dont think i explained it very well.
If you need more info just ask.
I think i know the reason i just dont know how to fix it."Notice: Undefined index: total_cost1 in F:\wamp\www\process.php on line 20"
This is the html part of the code:
Code: Select all
<b>Estimated Job Cost:$<span id=total_cost1 name=total_cost1></span><br>Code: Select all
$sql="INSERT INTO jobs (title, descript, proof, min, amountworkers, totalcost, perperson)
VALUES
('$_POST[title]','$_POST[descript]','$_POST[proof]','$_POST[min]','$_POST[amountworkers]','$_POST[total_cost1]','$_POST[perperson]')";If you need more info just ask.