Jump to content

nevx

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

nevx's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. can anyone help me out i keep gettin this error when i run this sricpt Parse error: syntax error, unexpected $end in C:\wamp\www\php\testhandle_form.php on line 50 i have the html page set up already this is th php page [code]<?php $name=$_POST['name']; $comments=$_POST['comments']; $email=$_POST['email']; $gender=$_POST['gender']; if (Strlen($name)>0) {      $name=stripslashes($name); }else {     $name=NULL;     echo '<p><b>You forgot to enter your name!</b></p>'; } if (Strlen($comments)>0) {      $comments=stripslashes($comments); }else {     $comments=NULL;     echo '<p><b>You forgot to enter your comments!</b></p>'; } //check email if (!(strlen($email)>0)) {     $email=NULL;     echo'<p><b>You forgot to enter your email!</b></p>'; } // gender if (isset($gender)){     if($gender =='M') {     $message='<b><p>Good Day , Sir!</p></b>';     }elseif ($gender=='F') {         $message='<b><p>Good Day , Madam!</p></B>';     }     else {         $gender=NULL;         echo'<p><b>You Forgot to enter your gender!</b></P>';     } //if everything was filled out if ($name && $comments && $email && $gender)     {     echo ('Thank you , <b> $name </b> for the following commnets:<br><tt> $comments </tt><br>');     echo $message;     } ?>[/code] any help appreciated thanks
  2. i have this html page <form action="upload.php" Method="post" ENCTYPE="multipart/form-data"> Submit this file: <INPUT TYPE="file" NAME="userfile"><br> <input type="submit"><br> </form> how do i proceed with the upload.php page i want to receive text file and pictures gif,jpeg--->it should be uploaded in my web default directory help appreciated
  3. I want several link on my php page eg : i'll have a link as follows test C: Desktop (3 links) now when i click on the link above say My Documents it opens all the files in that directory i know the code to display the files <?php chdir("/wamp/www/test"); $dir=opendir("."); while ($file=readdir($dir)) { echo("$file<br>"); } ?> my problems is how to get those link?maybe using <a href> any help appreciated
  4. I need some help on this one i have 3 pages , one is a simple html page user.html where <form action='processform.php' method="post"> Please type your name herebr> <input type=text name="username"><br><br> <input type=submit value="submit"><br><br> </form> ------------------------------------------------------------------------ <!--processform.php--> <p>Welcome <nbsp;><?php echo($_POST['username']);?>!</P> <br><br> <a target="_new" href="name.php" >Show Name</a> ----------------------------------------------------------------- <!--name.php--> <html> <body> <p>Applicant : <?php echo($_POST['username']);?></p> ------------------- why can't i see the variable in name.php any help appreciated i'm using WAMP5 Version 1.6.1
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.