•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 391,588 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,643 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 8918 | Replies: 2 | Solved
![]() |
•
•
Join Date: Oct 2004
Location: France / Paris
Posts: 14
Reputation:
Rep Power: 4
Solved Threads: 1
Hi chunguy,
Try this code:
http://www.fpepito.org/php/test4.php
http://www.fpepito.org/php/test4.txt
I hope that help to resolve,
fpepito
##### main.php
[PHP]
<?
if (isset($name)) {
echo "You have enter with the name: <B>$name</B><BR><BR>\n";
}
if (isset($name) && ! isset($ok)) {
$name = "new_name";
}
if (isset($name)) {
echo "welcome <B>$name</B><BR>\n";
echo "<A HREF=$PHP_SELF?name=$name&age=$age&ok=1>Reload this page</A><BR>\n";
} else {
echo "<FORM ACTION=$PHP_SELF>\n";
echo "Name : <INPUT TYPE=TEXT NAME=name><BR>\n";
echo "Age : <INPUT TYPE=TEXT NAME=age><BR>\n";
echo "<INPUT TYPE=submit value=\"Identify\">\n";
echo "</FORM>\n";
}
?>
[/PHP]
Try this code:
http://www.fpepito.org/php/test4.php
http://www.fpepito.org/php/test4.txt
I hope that help to resolve,
fpepito
##### main.php
[PHP]
<?
if (isset($name)) {
echo "You have enter with the name: <B>$name</B><BR><BR>\n";
}
if (isset($name) && ! isset($ok)) {
$name = "new_name";
}
if (isset($name)) {
echo "welcome <B>$name</B><BR>\n";
echo "<A HREF=$PHP_SELF?name=$name&age=$age&ok=1>Reload this page</A><BR>\n";
} else {
echo "<FORM ACTION=$PHP_SELF>\n";
echo "Name : <INPUT TYPE=TEXT NAME=name><BR>\n";
echo "Age : <INPUT TYPE=TEXT NAME=age><BR>\n";
echo "<INPUT TYPE=submit value=\"Identify\">\n";
echo "</FORM>\n";
}
?>
[/PHP]
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
Similar Threads
- Change-a-Letter-or-Two-Game (Posting Games)
- Change Your Start Menu name! It's Free! (Windows tips 'n' tweaks)
- Cant Change Ie Home Page (Viruses, Spyware and other Nasties)
- SIGNATURE HOSTING SITES (Site Layout and Usability)
- Change IE "Action Canceled" page?? (Web Browsers)
- "Unable to change Browser Settings" Error Message. (Windows NT / 2000 / XP / 2003)
- IListSource does not contain any data sources (ASP.NET)
Other Threads in the PHP Forum
- Previous Thread: Database Design
- Next Thread: Program Execution (system())


Linear Mode