website form

Gestart doorHabgallery3 reacties86 weergaven

4 berichten · pagina 1 van 1

Habgallery

Lid · Topicstarter

Berichten
631
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hey,

ik heb een betaal systeem endaarvoor heb ik even een simpele form gemaakt zodat ik weet welke user geld gedoneert heeft dus heb ik 2 inputs met naam en code die hij moest invullen bij betaling, dus het probleem is dat elke keer als ik op verzend druk dat hij 404 error krijgt? snap het probleem niet.
Spoiler tonen
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Just for Fun - Mobile Payment</title>



<!-- This is the CSS file for this tutorial -->
<link href="css/style.css" rel="stylesheet" type="text/css">


</head>
<body>
<br clear="all">
<center>
<div style="font-family:Verdana, Geneva, sans-serif; font-size:24px;">Mobile Payment vertification</div><br clear="all" />


<!-- Code Begins Here -->
<div class="vasplus_programming_blog_wrapper" align="left">

<center>
<div style="font-family:Verdana, Geneva, sans-serif; font-size:16px; float:left; width:120px;" align="left">Vertification</div>
<div style="font-family:Verdana, Geneva, sans-serif; font-size:11px; float:left; padding-top:4px;" align="left">All logs are being saved!</div><br clear="all" /><br clear="all" />

<div style="width:430px; font-family:Verdana, Geneva, sans-serif; font-size:12px;padding:10px;" align="left">

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_REQUEST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]]))[/COLOR]
[COLOR= #FF8000]//if "email" is filled out, send email[/COLOR]
  [COLOR= #007700]{[/COLOR]
  [COLOR= #FF8000]//send email[/COLOR]
  [COLOR= #0000BB]$email[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_REQUEST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]] ;[/COLOR]
  [COLOR= #0000BB]$subject[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_REQUEST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]subject[/COLOR][COLOR= #007700]] ;[/COLOR]
  [COLOR= #0000BB]$message[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_REQUEST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]message[/COLOR][COLOR= #007700]] ;[/COLOR]
  [URL="http://www.php.net/mail"]mail[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"silabfreak@live.be"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$subject[/COLOR][COLOR= #007700],[/COLOR]
  [COLOR= #0000BB]$message[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"From:"[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$email[/COLOR][COLOR= #007700]);[/COLOR]
  [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Donated succesfully, you will receive your donation status soon! Thanks for donating"[/COLOR][COLOR= #007700];
  }[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #FF8000]//if "email" is not filled out, display the form[/COLOR]
  [COLOR= #007700]{[/COLOR]
  [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<form method=post action=paid.php>
  JfF username: <input name=email type=text><br>
  <input name=subject type=hidden value=Mobile payment>
    <input name=message type=hidden value=Payment code:><br>
 Payment code: <input name=message type=text><br>
  <input type=submit>
  </form>"[/COLOR][COLOR= #007700];
  }[/COLOR]
?>
<br clear="all">
</center>
</div>
</center>
</body>
</html>
0
Berichten
443
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Codeblok (voorbeeld.php):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15



Het zou dus moeten worden:

Codeblok (voorbeeld.php):

1
2
3
4
5
6
7

0
Habgallery

Lid · Topicstarter

Berichten
631
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nevermind, Dankje voor je hulp! het is gefixt.
0
Berichten
14.025
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien
if "email" is filled out, send email

maar wat als de mail niet verzonden word omdat er een error is maar email wel gezet is?

Gebruik btw $_POST ipv $_REQUEST
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren