[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Webmasterplein.net • Toon onderwerp - Formulier
aan alle goede dingen komt een eind, webmasterplein.net 2003 - 2013
wij danken jullie voor al mooie momenten die dankzij dit forum ontstonden - Derk, Rutger en Stef

Formulier

Je komt er niet helemaal uit bij het scripten? Übergoede functie geschreven? Alles met betrekking tot scripting, kun je hier terecht.

Formulier

Berichtdoor Anonymous » 24 feb 2006 19:09

Hallo,

hoe kan ik allemaal gegevens versturen die een bezoeker eerst heeft ingevuld

ok hiermee bedoel ik dus dat de bezoeker eest zijn-haar gegevens invult in een input field, daarna worden die gegevens doorgestuurt naar de volgende pagina en van die pagina kan de bezoeker kiezen tussen wijzigen en versturen.

Ik heb de eerste en de tweede pagina al gemaakt.

dit is de code van index.php

<form action="voorbeeld.php" method="post" >
<input type="text" class="formulier_text_input memorize" name="naam" value="<?php echo $_POST['naam']; ?>">
<input type="submit" value="Volgende"/>
</form>

dit is de code van voorbeeld.php

<? print "$naam"; ?>
<input type="button" value="Bewerken" onClick="history.go(-1)" class="formulier_button">
<input type="submit" value="Versturen" class="formulier_button" />


maar hoe kan ik die gegevens (naam) versturen naar 1 email


Mvg,
Daniil
Anonymous
 

Re: Formulier

Berichtdoor KillerSponge » 24 feb 2006 19:14

Er van uitgaande dat je server php ondersteunt kan dat op deze manier:

[code="php"]<?
$email_naam = "Jans Janssen";
$email_email = "jan@janssen.nl";
$email_onderwerp = "Onderwerp";
$email_to = "admin@site.nl";
$headers = "From: $email_naam <$email_email>\r\n";
$headers .= "Return-Path: <jan@janssen.nl>\r\n";
$headers .= "X-Priority: 1\r\n";

$bericht = 'Het bericht';

mail( $email_to,$email_onderwerp,$bericht,$headers);
?>[/code]

Smile
Blabla en andere onzin - http://killersponge.nl
Avatar gebruiker
KillerSponge
Beheerder
Beheerder
 
Berichten: 14456
Geregistreerd: 24 aug 2004 13:05

Re: Formulier

Berichtdoor Anonymous » 24 feb 2006 19:37

maare waar moet ik dat zetten dan ?
en wat moet ik bij de knop zetten ?
Anonymous
 

Re: Formulier

Berichtdoor KillerSponge » 24 feb 2006 20:39

Dan stuur je de gebruiker door naar een nieuwe pagina waar je dat script in zet. Vergeet niet de variabelen goed te veranderen ^^
Blabla en andere onzin - http://killersponge.nl
Avatar gebruiker
KillerSponge
Beheerder
Beheerder
 
Berichten: 14456
Geregistreerd: 24 aug 2004 13:05

Re: Formulier

Berichtdoor Anonymous » 25 feb 2006 10:02

is het ook mogelijk om het een beetje op te maken met html ?
dus dat degene dan een html email binnenkrijgt?
zo ja weet je ook hoe ?
Anonymous
 

Re: Formulier

Berichtdoor KillerSponge » 25 feb 2006 10:11

Het ís mogelijk, al zou ik niet weten hoe. Ik heb er een keer mee lopen klooien, maar ik was te lui om het verder uit te zoeken ^^'
Blabla en andere onzin - http://killersponge.nl
Avatar gebruiker
KillerSponge
Beheerder
Beheerder
 
Berichten: 14456
Geregistreerd: 24 aug 2004 13:05

Re: Formulier

Berichtdoor Rik » 25 feb 2006 10:17

[code="PHP"]$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";[/code]
Dit bij de headers meesturen, dan kan je er HTML in gebruiken.
Avatar gebruiker
Rik
wmpr
 
Berichten: 1576
Geregistreerd: 11 jun 2005 17:59

Re: Formulier

Berichtdoor Daniil » 25 feb 2006 10:22

ok, maar als je dat meestuurt hoe moet die php file eruit zien dan ?
Avatar gebruiker
Daniil
wmpr
 
Berichten: 33
Geregistreerd: 25 feb 2006 10:17

Re: Formulier

Berichtdoor Rik » 25 feb 2006 10:27

Je voegt 't toe aan 't script van KillerSponge, achter die andere headers, en je kan in $bericht HTML gebruiken.

PS:Naar aanleiding van dat mailtje, alle vragen hier worden beantwoord op dit forum.
Avatar gebruiker
Rik
wmpr
 
Berichten: 1576
Geregistreerd: 11 jun 2005 17:59

Re: Formulier

Berichtdoor klaas » 25 feb 2006 10:32

klaas
wmpr
 
Berichten: 95
Geregistreerd: 06 feb 2005 01:08
Woonplaats: Nijmegen

Re: Formulier

Berichtdoor Daniil » 25 feb 2006 10:37

Avatar gebruiker
Daniil
wmpr
 
Berichten: 33
Geregistreerd: 25 feb 2006 10:17

Re: Formulier

Berichtdoor klaas » 25 feb 2006 11:12

klaas
wmpr
 
Berichten: 95
Geregistreerd: 06 feb 2005 01:08
Woonplaats: Nijmegen

Re: Formulier

Berichtdoor Daniil » 25 feb 2006 11:31

hmm,
et werkt niet echt.

dit is wat ik heb.

index.php

[code="php"]
<form action="preview.php" method="post">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>Name:</td>
<td><input type="text" name="name" value="<?php echo $_POST['name']; ?>"/></td>
</tr>
<tr>
<td><input name="submit" type="submit" value="Next" /></td>
<td>&nbsp;</td>
</tr>
</table>
<form>
[/code]


preview.php
[code="php"]
<form action="send.php" method="post">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>Name:</td>
<td><? print "$name"; ?></td>
</tr>
<tr>
<td><input type="button" value="Bewerken" onclick="history.go(-1)"/>
</a></td>
<td><input name="submit" type="submit" value="Verstuur" /> </td>
</tr>
</table>
[/code]

send.php
[code="php"]
<?
$email_naam = "Henk";
$email_email = "henk@mail.com";
$email_onderwerp = "Test";
$email_to = "daniiltje@hotmail.com";
$headers = "From: $email_naam <$email_email>\r\n";
$headers .= "Return-Path: <henk@mail.com>\r\n";
$headers .= "X-Priority: 1\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$bericht = 'hello '.$name;
mail( $email_to,$email_onderwerp,$bericht,$headers);
?>
[/code]


weet iemand wat er fout aan is ?

[mod="Derk"]Dus heb ik het maar even aangepast, gebruik de volgende keer tags die wel werken....
En als klap op de vuurpijl zijn er voor mensen die die werkende codes niet weten knoppen gemaakt Very Happy[/mod]
Avatar gebruiker
Daniil
wmpr
 
Berichten: 33
Geregistreerd: 25 feb 2006 10:17

Re: Formulier

Berichtdoor klaas » 25 feb 2006 13:32

klaas
wmpr
 
Berichten: 95
Geregistreerd: 06 feb 2005 01:08
Woonplaats: Nijmegen

Re: Formulier

Berichtdoor Daniil » 25 feb 2006 14:55

ja maar kijk hoe kan ik 2 of meer verschillende dingen versturen ?

dit werkt niet
[code="html"]<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>Naam:</td>
<td><? echo '<input type="hidden" name="naam" value="' . $_POST['naam'] . '">'; ?></td>
</tr>
<tr>
<td>Achternaam:</td>
<td><? echo '<input type="hidden" name="achternaam" value="' . $_POST['achternaam'] . '">'; ?></td>
</tr>
<tr>
<td><input type="button" value="Bewerken" onclick="history.go(-1)"/>
</a></td>
<td><input name="submit" type="submit" value="Verstuur" /> </td>
</tr>
</table>[/code]

[mod="Derk"]Code tags?[/mod]
Avatar gebruiker
Daniil
wmpr
 
Berichten: 33
Geregistreerd: 25 feb 2006 10:17

Re: Formulier

Berichtdoor klaas » 25 feb 2006 15:58

klaas
wmpr
 
Berichten: 95
Geregistreerd: 06 feb 2005 01:08
Woonplaats: Nijmegen

Re: Formulier

Berichtdoor mats » 25 feb 2006 16:01

Avatar gebruiker
mats
wmpr
 
Berichten: 3748
Geregistreerd: 19 sep 2004 12:00

Re: Formulier

Berichtdoor klaas » 25 feb 2006 16:33

klaas
wmpr
 
Berichten: 95
Geregistreerd: 06 feb 2005 01:08
Woonplaats: Nijmegen

Re: Formulier

Berichtdoor KillerSponge » 25 feb 2006 16:44

je moet wel een taal opgeven, dus [code="html"]<html>-code[/code]
Blabla en andere onzin - http://killersponge.nl
Avatar gebruiker
KillerSponge
Beheerder
Beheerder
 
Berichten: 14456
Geregistreerd: 24 aug 2004 13:05

Re: Formulier

Berichtdoor Daniil » 25 feb 2006 17:00

en waar moet ik deze plaatsen dan ?
'<input type="hidden" name="bericht" value="' . $_POST['bericht'] . '">';
Avatar gebruiker
Daniil
wmpr
 
Berichten: 33
Geregistreerd: 25 feb 2006 10:17

Re: Formulier

Berichtdoor mats » 25 feb 2006 17:24

Avatar gebruiker
mats
wmpr
 
Berichten: 3748
Geregistreerd: 19 sep 2004 12:00

Re: Formulier

Berichtdoor Derk » 25 feb 2006 18:23

Afbeelding
Avatar gebruiker
Derk
Beheerder
Beheerder
 
Berichten: 12634
Geregistreerd: 27 nov 2003 19:50
Woonplaats: Houten

Re: Formulier

Berichtdoor Daniil » 26 feb 2006 15:36

al ik dit nu probeer:

[code="html"]
<?
$email_naam = "$naam $achternaam";
$email_email = "$email";
$email_onderwerp = "Onderwerp!";
$email_to = "daniiltje@gmail.com";
$headers = "From: $email_naam <$email_email>\r\n";
$headers .= "Return-Path: <$email>\r\n";
$headers .= "X-Priority: 1\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

$bericht = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">";
$bericht .= "<html><head>";
$bericht .= "<META http-equiv=3DContent-Type content=3D\"text/html; = charset=3Dwindows-1252\">";
$bericht .= "</head><body>";
$bericht .= "<table border="0" cellspacing="0" cellpadding="0">";
$bericht .= "<tr>";
$bericht .= "<td bgcolor="#0000FF">Hello</td>";
$bericht .= "<td bgcolor="#FF0000">.$email_naam.</td>";
$bericht .= "<td bgcolor="#FFFF00">.$email_naam.</td>";
$bericht .= "</tr>";
$bericht .= "</table>";
$bericht .= "</body></html>";
mail( $email_to,$email_onderwerp,$bericht,$headers);
?>
[/code]

dan krijg ik een error
weet iemand waarom?

Parse error: parse error, unexpected T_LNUMBER in /home/contracts/CN20050870/www/new/send.php on line 16
Avatar gebruiker
Daniil
wmpr
 
Berichten: 33
Geregistreerd: 25 feb 2006 10:17

Re: Formulier

Berichtdoor Rik » 26 feb 2006 15:45

Sowiso, het welbekende quote probleem.
Vervang die " in de variale, dus niet die wat de variablen starten en stoppen, in '.
Msichien werkt 't dan wel.
Avatar gebruiker
Rik
wmpr
 
Berichten: 1576
Geregistreerd: 11 jun 2005 17:59

Re: Formulier

Berichtdoor Daniil » 26 feb 2006 15:45

en als ik border="0" cellspacing="0" cellpadding="0" weggooi dan krijg ik weer een error

/home/contracts/CN20050870/www/new/send.php on line 18
Avatar gebruiker
Daniil
wmpr
 
Berichten: 33
Geregistreerd: 25 feb 2006 10:17

Volgende

Keer terug naar PHP, ASP, SQL



cron