my only experience with php is from a book i bought about a year ago, and while it gave me a basic understanding, i'm still a complete novice with it. i don't program for a living, and i rarely do it for fun anymore. i have searched both in this and other forums, as well as general internet searches, but haven't been able to locate an answer and so here i post ...
i'm a member of a forum for people who have quit smoking, and have been trying to help out by creating a signature creator for the members.
what i'm trying to do is have a page (ie create.php), where the user enters the date they quit smoking, the number of cigarettes they used to smoke per day, and their cost/pack of smokes.
then take that info and create a dynamic sig for them, which would display the number of days since they quit, the money they have saved (# of cigs * 20 * cost/pack), and the number of cigarettes they haven't smoked (# of cigs * # of days).
not only create the sig (over a graphic which i've made), but also output the html and bbcode so they can copy/paste into their profiles.
i've written the first page (create.php), and i think its right, but now i'm completely lost and don't know which direction to go. any help to get to the final result would be greatly appreciated.
<div id="info"><img src="images/bg.png" /><br><br>
<form style="margin: 0px;" method="get" onsubmit="return checkDomain(this);" action="create.php" id="form1" name="form1">
<nobr>Cigarettes smoked per day:<input name="perday" type="text"></nobr><br><nobr>Cost Per Pack:<input name="perpack" type="text"></nobr><br>Quit Date: <select name='Month'>
<option value='1' >Jan</option>
<option value='2' >Feb</option>
<option value='3' >Mar</option>
<option value='4' >Apr</option>
</select>
<select name='Day'>
<option value='1' >1</option>
<option value='2' >2</option>
<option value='3' >3</option>
</select>
<select name='Year'>
<option value='2010' >2010</option>
<option value='2009' >2009</option>
<option value='2008' >2008</option>
<option value='2007' >2007</option>
</select>
<br><input value="Generate" id="submit1" name="submit1" src="create.php" type="submit"></form>