Click here to Skip to main content
15,881,938 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I can not get it to create a user and pass the reports error in line 17 the script is at this address http://sandheden.eu/pass/Sign_Up.htm sincerely,J.Kjaer.

PHP
1<html>
2<body>
3<?php 
4
5 if(!isset($_POST['uname']) || !isset($_POST['pass'])){  //Redirect somewhere } 
6
7 $ourFileName = $_POST['uname'] ."_pass.txt";
8
9 $ourFileHandle = fopen($ourFileName, 'w') or die("kan ikke åbne filen");
10
11 fclose($ourFileHandle); $fopen = fopen($ourFileName, 'a');
12
13 fwrite($fopen, $_POST['pass']);
14
15 fclose($fopen);
16
17 ?>
Posted
Updated 24-Feb-15 3:02am
v2
Comments
ZurdoDev 24-Feb-15 9:02am    
What is the error?

1 solution

Missing closing } for the if (...){
}
?>
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900