Het lukt me maar niet om zown ID op mn php pagina aan te maken... als je niet ckr weet wat ik bedoel:
Tweakwindows heeft ook zowiets! als je mijn bericht bekijkt zie je in je adresbalk tweakwindows.nl/index.php? a=forum
hoe maak je dat "?" en a=forum?
ik heb al op google gezocht maar ze leggen het niet duidelijk uit. heel ingewikkeld :p
Dit omdat op mijn website kan je je registreren... er wordt een mailtje naar je gestuurd met: [link] ? id= 3 code is nog wat true.
en als ik daarop klik dan komt er pagina kan niet worden weergegeven
17 januari 2006 16:59
leviathan
hmm ik snap je vraag niet echt, maar dit is gewoon zo geprogrammeerd. Rax heeft volgens mij er gewoon voor gekozen om a te gebruiken, het had net zo goed iets anders kunnen zijn...
17 januari 2006 17:40
ali
ik bedoel hoe ik zelf zn ID dingens kan toevoegen!
ipv mijn link : ali.com/contact.php
dit: ali.com?id=2
waar 2 voor contact staat
17 januari 2006 17:52
leviathan
is dat nodig dan? Deze site is best wel een flink scriptje hoor, dat flik je niet zomaar 1 2 3.
17 januari 2006 18:59
ali
word je website daar niet sneller van dan?
het gaat mij alleen om dat activerings mailtje :p
17 januari 2006 19:41
leviathan
nou, de site word er inderdaad sneller van, omdat hij een paar letters niet hoeft te berekenen, maar dat verschil is zoooooooooooooooooooooooooooooooooo klein, dat merk je heus niet hoor... het verschil is eigenlijk gewoon te verwaarlozen. Dus de "makkelijke'' manier is al goed zat.
17 januari 2006 20:22
ali
hoe moet ik dat verder doen met dat activerings mailtje dan?
18 januari 2006 12:47
leviathan
:F euh hoe leer je php? daar heb je toch tutorials voor! de mijne staat het bij inbegrepen :p
Oh ja, op http://www.jacqieline.com staan kant-en-klare scriptjes, daar staat het vast ook in, kun je gebruiken of daar uit knippen.
18 januari 2006 14:44
ryan
ali.com?page=home
zo moet je dat doen:
<?
switch (strtolower($_GET['page']))
{
case "home":
$page="sub/index.htm";
break;
case "about":
$page="sub/over.htm";
break;
case "admins";
$page="sub/admins.htm";
break;
case "chat";
$page="sub/chat.htm";
break;
case "poll";
$page="sub/poll.htm";
break;
case "bill";
$page="sub/bill.htm";
break;
case "mes_add";
$page="mes_add.php";
break;
case "nieuws";
$page="nieuws/index.php";
break;
case "contact";
$page="contact.php";
break;
default:
$page="sub/index.htm";
}
include ($page);
?>
Verbinding maken met MySQL van lycos:
MySQL voor lycos:
<?
// Error reporting zetten we uit, het is niet echt netjes je bezoekers errors voor te schotelen
ERROR_REPORTING(0);
// MySQL
$db_user = "<je gebruikers naam>"; // Gebruiker voor MySQL
$db_pass = ""; // Wachtwoord voor MySQL (voor lycos niks invullen)
$db_host = "localhost"; // Host voor MySQL; standaard localhost
$db_db = "<je gebruikers naam>_nl_db"; // Database (voor lycos je gebruikersnaam gevolgd door _nl_db)
// Als je al ergens anders een database connectie hebt gemaakt,
// maak dan van de volgende twee regels commentaar (# of // ervoor zetten)
mysql_connect($db_host,$db_user,$db_pass);
mysql_select_db($db_db);
?>
je mag natuurlijk ook beginnen met <?php maar dat is niet echt nodig
www.phphulp.nl (voor meer phpscripts en tuts)
18 januari 2006 16:18
leviathan
uhm dit is toch niet het script waar ali om vroeg. did hoort niet eens bij zijn site, het is een half afgekapt script. Verder zet ik error_reporting altijd w?l aan en blijf dan nt zo lang doorgaan tot er geen fouten meer zijn...
over dat script dat een mailtje stuurt he ali, volgens mij heb ik dat op de site zien staan die ik gaf. eventjes zoeken (volgens mij naar login systeem, daar komt ook een registreer tutorial bij compleet met bevestigingsmail)
Wil je een kant en klaar php - mysql contact formulier? stuur dan even een PM! :o
18 januari 2006 16:31
leviathan
ali zei op: 18/01/2006 - 12:47[quote]hoe moet ik dat verder doen met dat activerings mailtje dan?[/quote]Ali vroeg om een activerings mail systeem, en niet om een php mail verzend systeem.
18 januari 2006 17:18
ryan
leviathan zei op: 18/01/2006 - 17:18[quote]ali zei op: 18/01/2006 - 12:47[quote]hoe moet ik dat verder doen met dat activerings mailtje dan?[/quote]Ali vroeg om een activerings mail systeem, en niet om een php mail verzend systeem.[/quote]
Het is veel leuker om zelf ook iets te doen!!!! jah |-) anders hoeft Ali helemaal niks meer te doen :| nou weet hij waar hij naar opzoek moet!
*reactie:
Maar jij weet het ook niet :p
18 januari 2006 18:47
leviathan
uhm, hij weet toch al lang waar hij naar zoekt...
18 januari 2006 19:50
ali
kijk! ik zal es wat duidelijker uitleggen :P zorry voor de overlast:P
als iemand zichzelf registreert krijgt hij een mailtje met link om te activeren! een voorbeeldlink:
zie je dat ID geval? mijn vraag was dus hoe ik dat probleem kan verhelpen! want kan er naar de gerigesteerde gebruiker niet een mailtje worden verzonden met: je activeringscode: 5125 en klik op deze link om het in te vullen. want ik heb ook een activerings pagina! waar men code can invoeren! Ik hoop dat het nu wat duidelijker is!
18 januari 2006 20:19
leviathan
oww zit dat zo,
nou begrijp ik je pas :p
dan maak je een input balkje. met name="ID" als voorbeeld. <input type="text" name="ID"> en als je dan dat hokje invult met bijvoorbeeld 555 dan weet ie dat ID 555 is.
Je kunt dat boxje dus ook direct in vullen door het in de url te zetten, dus http://jouwsite.domein/pagina.php?ID=555, dus dit komt op hetzelfde neer. snap je het?
en als je het niet begrijpt, heb je al eens een aantal (verschillende) tutorials doorgenomen, zeker weten dat dit er in voorkomt.
18 januari 2006 20:47
ryan
K heb het zelfde login systeem :P
maar ik ontvang helemaal geen activatie mail :S
Gebruiker: aKa
19 januari 2006 19:23
ali
jah Ryan... bij jouw werkt die activatie wel... hoe heb je dat voor elkaar gekregen???
20 januari 2006 07:02
ryan
gewoon registreren, en dan kreeg ik na 24 uur!!! (duurde wel wat lang) een mail met activatie.... daarin kan k gewoon op een link drukken en klaar!
21 januari 2006 08:54
ali
oke! ik was allang klaar en alles wertkt na een hoop geknoei! Maar ik kon niet posten :P :p dat het klaar was...
Bedankt !