Jump to content

Meg_Griffin

Members
  • Posts

    23
  • Joined

  • Last visited

About Meg_Griffin

  • Birthday 07/31/1991

Previous Fields

  • Languages
    JS, PHP/SQL

Profile Information

  • Gender
    Male
  • Location
    Quahog
  • Interests
    Animation,CG,football,
    thai boxing,books

Meg_Griffin's Achievements

Newbie

Newbie (1/7)

1

Reputation

  1. <?php include('../config/header.php'); ?><?php include('../config/globals.php'); ?> <div class="body"> <div class="topo"></div><h1 class="title">Register Employees</h1> <form method='POST' action='<?php echo DIR ?>/staff/register_employees.php' class="table"> <p>Name: <input name='name' /></p> <p>Phone Number: <input name='phone_number' /></p> <p>Adress: <input name='adress' /></p> <p>Sallary: R$ <input name='sallary' /></p> <p>Occupation: <input name='occupation' /></p> <p>Department: <input name='department' /></p> <button type='submit'>Register</button></form></div><?php if (count($_POST) > 0){ insert($_POST, 'employees'); ob_clean(); header('LOCATION: '.DIR.'/employees/list_employees.php'); }?><?php include_once('../config/footer.php'); ?>
  2. Hi guys,I have a system and the registration part of it doesn't work but it doesn't report any errors.Any ideas of what is going on?
  3. Guys,I want this effect on scroll. I Hope it is better explained...
  4. Well,I know about the overflow property but I want something better. I want my scroll to be invisible. I'm building an one page portfolio site,and I think that would be a solution for that problem.If anyone suggests something better I would be grateful.
  5. Is there a way to get an infinite scroll in css?
  6. Thanks. I'm distracted today
  7. Meg_Griffin

    coding problem

    That's my full code: <?php $test = search_by_id('tests',$_GET['test_id']); $students = select_all('students'); $questions = search_questions($_GET['test_id']);?> <h2>Test Attempt <?php echo $test['name']?></h2><select> <input value="students">Students/> <input value="questions">Questions/> <input name='answers[]'></select> <?php //code to register attemptif (count($_POST) > 0){ $data = array( 'test_id' => $_POST['test_id'], 'student_id' => $_POST['student_id'], 'answers' => implode("###", $_POST['answers']), ); insert($data, 'attempts'); ?> and I get this error: Parse error: syntax error, unexpected $end in C:\xampp\htdocs\exercise_01\templates\attempts\register.php on line 23 I tried to do it in other ways,but I still get different errors.
  8. What's the big deal about the deep web? Is it really so scary?I always read the same thing,that the deep web is where hackers,crackers and a plenty of criminals hide to avoid authorithies and keep their privacy.Can anybody tell me what is it like?
  9. rahultailwalmy full code: <h2>Register Student</h2> <?php //code to register student<form method='POST' action='<?php echo $_SERVER['PHP_SELF']; ?>'> <p>Name <input name="name" /></p> <p>E-mail <input name="email" /></p> <button type="submit">Save</button></form> <?php if (count($_POST) > 0){ insert($_POST, 'students'); ob_clean(); header('LOCATION: '.ROOT.'/students/list.php'); }?> ?>
  10. Well,that is part of file register.php on my project. It's a small system using a DB. I don't know why specifically this file is not working properly. The others are working perfectly.on line 5 is <form method='POST' action='<?php echo $_SERVER['PHP_SELF'] ?>'>
  11. That's my code: <form method='POST' action='<?php echo $_SERVER['PHP_SELF'] ?>'> <p>Name <input name="name" /></p> <p>E-mail <input name="email" /></p> <button type="submit">Save</button></form> The output shows: Parse error: syntax error, unexpected '<' in C:\xampp\htdocs\exercise_01\templates\students\register.php on line 5 When I got rid of this "<" nothing happened.
  12. Thanks a lot,the scientist.
×
×
  • Create New...