Current location: Hot Scripts Forums » Programming Languages » PHP » mkdir failed


mkdir failed

Reply
  #1 (permalink)  
Old 03-11-04, 10:07 PM
banli banli is offline
Newbie Coder
 
Join Date: Feb 2004
Location: on a chair
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
mkdir failed

can someone tellme whats wrong with this script?

singup.php:
Code:
<form action=signup2.php method=post>
<input type="text" length="40" value="name"><br>
<input type=submit>
</form>
signup2.php:
Code:
<?php
$name = $_POST['name'];
mkdir($name);
?>
i get this error:
Parse error: parse error, unexpected T_VARIABLE in C:\foxserv\www\makdir\make.php on line 3

ya, im a php n00b

its php 4.2.2 running on my home pc (xp home)

Last edited by banli; 03-11-04 at 10:11 PM.
Reply With Quote
  #2 (permalink)  
Old 03-12-04, 12:03 AM
Infinite_Hackers's Avatar
Infinite_Hackers Infinite_Hackers is offline
Coding Addict
 
Join Date: Dec 2003
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Code:
<form action=signup2.php method=post>
<input type="text" length="40" name="name" value="name"><br>
<input type=submit>
</form>
you didn't give your input a name so that you can call it
Reply With Quote
  #3 (permalink)  
Old 03-12-04, 02:24 AM
MasQ's Avatar
MasQ MasQ is offline
Newbie Coder
 
Join Date: Feb 2004
Location: Norway/Oslo
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Might I recomend an ID aswell?

Code:
<form action=signup2.php method=post>
<input type="text" length="40" name="name" value="name" id="name"><br>
<input type=submit>
</form>
Reply With Quote
  #4 (permalink)  
Old 03-12-04, 09:34 AM
banli banli is offline
Newbie Coder
 
Join Date: Feb 2004
Location: on a chair
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
lol. stupid me, i thought i added a name...

thanks...
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Server.CreateObject Failed voodoo9055 ASP 7 03-16-04 07:25 AM
List of urls with ASP Naz ASP 8 02-12-04 02:28 PM
Entries load failed. Marko PHP 1 07-18-03 07:58 AM


All times are GMT -5. The time now is 10:19 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.