Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: PHp problemo

  1. #1

    Default PHp problemo


    Bai. n00b ko php. Bag.ohay ra ko nakat.on, karon lang. Wala lagi mu display sa akong page.

    index.php
    <html>
    <head>
    <title>
    Workout Center
    </title>
    <link rel="stylesheet" href="style.css">
    </head>
    <body>

    <form action="register.php" method="post">
    Workout Center Employee Application Form<br><br>

    Employee Type
    <select name="empType">
    <option>Trainer</option>
    <option>Cashier</option>
    <option>Technician</option>
    </select>

    <br>
    Name: <input type="text" name="empName" /><br>
    Address: <input type="text" name="empAdd" />
    <input type="submit" />
    </form>

    </body></html>
    register.php
    <html>
    <link rel="stylesheet" href="style.css">
    <body>
    <?php

    echo 'Welcome ' . $_POST['empName'] . ' thanks for filling in out form';

    ?>
    </body></html>
    Blank page ra mugawas inig submit.

    Pa help po.

  2. #2

    Default Re: PHp problemo

    try daw create new file bro;

    <?php

    phpinfo();

    ?>

    naa bay mo gawas, if wala gani naa prob imo installation php.If naa, try to use any php editor basin sayop pag name saimu file.


  3. #3

    Default Re: PHp problemo

    First Question, had you already install a xampp combo? it's apache,php,mysql and other stuff, then if not, i suggest you to follow this tutorial http://webtutorialtool.blogspot.com/...p-for-php.html

    Once you finish that, please put your files under the c:/xampp/htdocs/ then you files here..... so this is serve as your web root so if you run this just type on your browser

    http://localhost/yourfilehere.php


    and that all happy coding.............. :mrgreen: :mrgreen: :mrgreen:

  4. #4

    Default Re: PHp problemo

    Okay na lagi pag mata nako karon. Pag run nako sa script balik nakita na tanan.

    Anyway kaning ing.ani ba..

    echo "Welcome"." ".$_POST["empName"]."<br>";

    I need to put a space between welcome and the name so akong gi concatenate ang space.
    Wa nay laing paagi para mubutang ug space between strings?

  5. #5

    Default Re: PHp problemo

    Wala nasad da. Murag naay guba sa akong pag install. Wa nasad makita. BTW, phpinfo(); can be seen.

    Do you have a very good and simple guide on how to install the 3 (php,apache,mysql) and make them work together?

    Katong xampp gi reply ni weblizzer, asay mas maayu nila sa apache ra jud? Murag apache raman sad to.

  6. #6

    Default Re: PHp problemo


    Quote Originally Posted by poymode
    Okay na lagi pag mata nako karon. Pag run nako sa script balik nakita na tanan.

    Anyway kaning ing.ani ba..

    echo "Welcome"." ".$_POST["empName"]."<br>";

    I need to put a space between welcome and the name so akong gi concatenate ang space.
    Wa nay laing paagi para mubutang ug space between strings?
    Try:
    Code:
    echo "Welcome {$_POST['empName']} <br />";

    BTW, I think you need to use the value attribute in your option tag:

    Code:
    Employee Type   
    <select name="empType">
      <option value="Trainer">Trainer</option>
      <option value="Cashier">Cashier</option>
      <option value="Technician">Technician</option>
    </select>

  7. #7

    Default Re: PHp problemo

    suwayan lang to nako ang xampp ni weblizzer. mas nindot daw to ingon akong clasmit.

  8. #8

    Default Re: PHp problemo

    Tara ako problem ai. Just installed xampp and still the same.

    Instead of displaying the right thing, it displays code fragments of the php script. makita ang mga ?> echo...blah blah.... etc

  9. #9

    Default Re: PHp problemo

    try to use lower version sa apache bro kadtong 2.0 ayaw ang 2.2 kay naay bug ang pataban nga apache dll sa PHP 5..tinagsa install bro apache->php->mysql para katon judka unsaon pag configure.

  10. #10

    Default Re: PHp problemo

    OK naman cguro ko bro. Di cguro gyud pwede if akong I run ang php file gamit mozilla. Kailangan mu agi jud ko sa localhost kay inig run gud nako sa php file direcho click padong mozilla, lahi man iyang address naka display sumting like d:/web/index.php. wala siya ni agi ug localhost so mao siguro di jud mudagan akong scripts. tnx a lot.

  11.    Advertisement

Page 1 of 2 12 LastLast

Similar Threads

 
  1. Today, I only have Php 20.00 in my pocket.. GAME!
    By ZuperTzai in forum General Discussions
    Replies: 211
    Last Post: 05-03-2020, 01:08 PM
  2. PHP vs ASP?
    By MyGIRBAUD`DotCom in forum Websites & Multimedia
    Replies: 42
    Last Post: 12-08-2005, 07:03 PM
  3. PHP syntax!!!! syntax!!!! Syntaxx!!!! any... any... any
    By dodie in forum Websites & Multimedia
    Replies: 46
    Last Post: 08-19-2005, 03:11 PM
  4. Web programming like PHP, ASP, HTML AND FLASH ANIMATIONS
    By michaxze in forum Websites & Multimedia
    Replies: 10
    Last Post: 07-30-2005, 05:50 AM
  5. Where: Cebu based PHP/MySQL based hosting
    By cmontoya in forum Websites & Multimedia
    Replies: 19
    Last Post: 06-29-2005, 10:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top