donations.php
This commit is contained in:
parent
5fca34c303
commit
c3f787f14a
|
@ -60,11 +60,11 @@ html, body {
|
|||
|
||||
/* Equal to height of footer */
|
||||
/* But also accounting for potential margin-bottom of last child */
|
||||
margin-bottom: -150px;
|
||||
margin-bottom: -200px;
|
||||
}
|
||||
footer,
|
||||
.push {
|
||||
height: 150px;
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
.footer {
|
||||
|
|
|
@ -34,5 +34,10 @@ $amount = (float)($_GET["amount"]);
|
|||
if(is_numeric($amount) && $amount > 0) {
|
||||
forwardToDonationPage($amount);
|
||||
} else {
|
||||
echo "invalid amount!";
|
||||
$amount = (float)($_POST["amount"]);
|
||||
if(is_numeric($amount) && $amount > 0) {
|
||||
forwardToDonationPage($amount);
|
||||
} else {
|
||||
echo "invalid amount!";
|
||||
}
|
||||
}
|
||||
|
|
18
index.html
18
index.html
|
@ -155,16 +155,28 @@
|
|||
</td>
|
||||
<td class="footer">
|
||||
<div class="col-12">
|
||||
<ap><span><b>Erstellt durch</b></span><br>
|
||||
<p><span><b>Erstellt durch</b></span><br>
|
||||
Silias KLG<br>
|
||||
Toggenburgstrasse 31<br>
|
||||
8245 Feuerthalen<br>
|
||||
<a href="https://www.silias.ch" target="_blank">www.silias.ch</a><br>
|
||||
<a href="mailto:info@silias.ch">info@silias.ch</a><br><
|
||||
<a href="https://gitea.silias.ch/Silias-Public/genderwatchprotocol">Projekt Repository</a><p>
|
||||
<a href="mailto:info@silias.ch">info@silias.ch</a><br>
|
||||
<a href="https://gitea.silias.ch/Silias-Public/genderwatchprotocol">Projekt Repository</a>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<p>
|
||||
Diese Webseite ist ausschliesslich durch Spenden finanziert.<br>Helfen Sie bei der Fianzierung mit einer freiwilligen Spende.
|
||||
</p>
|
||||
<form method="post" action="donations/donations.php">
|
||||
<input type="number" name="amount" placeholder="Betrag eingeben">
|
||||
<button type="submit">Jetzt spenden</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue