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...
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.
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...
...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?
...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...
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...
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...
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...
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...