Recent content by Willbor

  1. W

    Tricky HTML question about 2 buttons... Please help...?

    Hello. I have 2 buttons inside <table>. It looks something like: <form...><table...>...OKButton... ...CancelButton...</table></form> But, actually I need something like <form...><table...>...OKButton...</table></form> <form...>...CancelButton...</form>.... That's because OKButton and...
  2. W

    PHP or JS: show on page how many characters left, when you type?

    Using PHP or JS: how to show on page under a text field, how many more characters person can type... Every typed symbol reduces that value. "You have 75 characters left", "You have 74 characters left"... What's a smart way to do that? Thank you.
  3. W

    php:work with sessions,everything is OK,but how to prohibit loading page that is always

    a part of another page? You have part2.php page that is alsways used a part of globalpage.php. I mean that at globalpage.php you have such a string: require_once('part2.php'). So part2.php puts its code into globalpage.php. Unfortunately, you can just type localhost/part2.php and execute...
  4. W

    Php: user came to the page page.php?val=4 .After "Submit"-button he goes to...

    ...another page.How to get "4" value? Php: user came to the page page.php?val=4 .After "Submit"-button he goes to another page.How to get val=4 from the link? $_SESSION['val'] has no any values. Why?
  5. W

    php question about folders: why header("location: localhost\member.php") doesn't see...

    ...member.php? Hello, we have two files: C:\wamp\www\modules\member.php and C:\wamp\www\modules\sign.php sign.php has such a string: header("location: member.php"). It works ok! But, I want member.php to be located at C:\wamp\www\member.php (not in \modules folder) How should I change this...
  6. W

    Php question: why it shows not the whole string from DB?

    This string works fine: echo "<tr><td>" . $row['Name'] . "</td> ........ // It displays John Doe - OK. This string doesn't work fine: echo "<tr><td><input type=\"text\" name=\"ShopName\" value=" .$row['Name']. " size=\"90\" maxlength=\"200\" /></td> //It displays only John, but not...
  7. W

    php question: What's the best way to check if you came to page3.php from page2.php?

    you have page1.php, page2.php and page3.php. page1.php has a submit button that direct you to page3.php, page2.php has a submit button that direct you to page3.php. How do programmers usually check if you came to page3.php from page1.php, page2.php, anyotherpage at this site or any other site...
  8. W

    Is it normal to make the first page not index.html, but index.php?

    Is it good and smart to make a first page not as index.HTML, but as index.PHP if needed. Most of Submit buttons on index.php page send data to the same index.php. Is that OK? Is it a popular idea? I decided to do that because a lot of content stays the same even when user presses a button...
  9. W

    php& Linux hosting & MySQL server: download MySQL first or buy hosting first?

    Hello. My question is about creating a simple site with php & MySQL database and several simple webpages. What is the way to do that? METHOD #1 1) buy cheap space on linux/unix server with MySQL (no more than $30 per several months - is it possible?) 2) create a Table there in the database on...
Back
Top