Find Jobs
Hire Freelancers

Webpage database(repost)(repost)

$30-100 USD

已完成
已发布大约 15 年前

$30-100 USD

货到付款
I have a webpage which calculates loan repayments based on variables supplied by a user form. I also have a database which sits behind the form storing each loans variables. I have a working version of the webpage which can store the data and calculate the loan’s details ??" but only as a two click two step operation. However, I would like to get the webpage to submit the data to the database, and calculate the loan details with a single button push. ## Deliverables *****irrelevant code before this line ***** <tr><td><CENTER> <H1>Loan Amortisation Calculator</H1></CENTER> <HR> <CENTER> <?php if (isset($_GET['addprovidername'])); ?> <CENTER>To calculate your monthly the details of your loan and click the calculate button below. If you would also like to help us identify the best loans - please tell us a bit about your loan and click the survey button ? ? </CENTER> <form name=form1 action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST"> <label> Type your loan provider here:<br/></label> <INPUT name=providername value=" "> <br/> <input type="submit" value="Optional Survey SUBMIT" /> <FORM name=form2> <P> <TABLE border=3> ? <TBODY> ? <TR> ? ? ? <TD>Amount of the loan ($)</TD> ? ? ? <TD><INPUT name=principle value="10000"></TD></TR> ? <TR> ? ? ? <TD>Annual interest rate (%)</TD> ? ? ? <TD><INPUT name=apr value="7.5"></TD></TR> ? <TR> ? ? ? <TD>Total number of years</TD> ? ? ? <TD><INPUT name=years value="10"></TD></TR> <INPUT onclick=compute([login to view URL]) type=button value=Calculate> ? </TBODY></TABLE></FORM></CENTER> </form> ? ? ? ? ? ? ? <td><tr></table> <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> ? <?php $link = @mysql_connect('localhost','root','password'); if (!link) { ('<p> Unable to connect to the ' . ? ? 'database server at this time.</p>' ); ? ? exit(); } //$dbcnx = @mysql_connect('[login to view URL]', 'root', 'password'); //if (!$dbcnx) { //? exit ('<p>Unable to connect to the ' . //? 'database server at this time.</p>'); //} //Select the database if (<!@mysql_select_db('amort'>)) { exit ('<p> Unable to locate the amort ' . 'database at this time.</p>'); } if (isset($_POST['providername'])) { ? $providername= $_POST['providername']; ? $sql = "INSERT INTO amort SET ? providername='$providername', ? loandate=CURDATE()"; if (@mysql_query($sql)) { ? echo '<p>Your loan has been added.</p>'; ? } else { ? echo '<p>Error adding submitted loan: ' . ? mysql_error() . '</p>'; } } $result = @mysql_query('SELECT providername FROM amort'); if (!$result) { ? exit ('<p>Error performing query: ' . mysql_error() . '</p>'); } while ($row = mysql_fetch_array($result)) { ? echo '<p>' . $row['providername'] . '</P>'; } echo '<p><a href="' . $_SERVER['PHP_SELF'] . ? '?addprovidername=1">Add another loan!</a></p>'; ? mysql_close($link); ?> <script language="JavaScript"> function BrowserCheck(msg) { if ([login to view URL] !="Microsoft Internet Explorer"){ alert("Please use Internet Explorer to view this page"); msg="Your Browser does not understand VBScript"; ,alert(msg) } } </script>
项目 ID: 3814120

关于此项目

19提案
远程项目
活跃15 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
See private message.
$30.60 USD 在7天之内
4.9 (7条评论)
3.1
3.1
19威客以平均价$41 USD来参与此工作竞价
用户头像
See private message.
$21.25 USD 在7天之内
4.9 (695条评论)
7.4
7.4
用户头像
See private message.
$84.99 USD 在7天之内
4.9 (133条评论)
6.4
6.4
用户头像
See private message.
$42.50 USD 在7天之内
4.7 (244条评论)
6.3
6.3
用户头像
See private message.
$8.50 USD 在7天之内
4.7 (150条评论)
5.6
5.6
用户头像
See private message.
$68 USD 在7天之内
4.9 (18条评论)
5.5
5.5
用户头像
See private message.
$25.50 USD 在7天之内
4.9 (87条评论)
5.2
5.2
用户头像
See private message.
$25.50 USD 在7天之内
5.0 (19条评论)
4.5
4.5
用户头像
See private message.
$51 USD 在7天之内
5.0 (16条评论)
4.5
4.5
用户头像
See private message.
$17 USD 在7天之内
4.9 (13条评论)
4.2
4.2
用户头像
See private message.
$127.50 USD 在7天之内
3.8 (29条评论)
4.3
4.3
用户头像
See private message.
$21.25 USD 在7天之内
4.9 (13条评论)
3.9
3.9
用户头像
See private message.
$17 USD 在7天之内
4.7 (12条评论)
3.8
3.8
用户头像
See private message.
$25.50 USD 在7天之内
4.9 (28条评论)
3.5
3.5
用户头像
See private message.
$25.50 USD 在7天之内
5.0 (3条评论)
3.1
3.1
用户头像
See private message.
$25.50 USD 在7天之内
5.0 (6条评论)
3.1
3.1
用户头像
See private message.
$17.85 USD 在7天之内
3.9 (17条评论)
3.2
3.2
用户头像
See private message.
$85 USD 在7天之内
5.0 (10条评论)
2.9
2.9
用户头像
See private message.
$68 USD 在7天之内
0.0 (1条评论)
0.0
0.0

关于客户

AUSTRALIA的国旗
Australia
5.0
3
会员自3月 6, 2009起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。