Hello masters of web developing. I have an average experience in C# and I like to know that how much does it take to be a great developer in PHP by considering that I put my time on this 24/7. Why I didn't choose ASP.NET is that I think it is much time consuming than learning PHP and I like to work with current famous CMSes like Wordpress and Drupal.
<?php// First we execute our common code to connection to the database and start the session
// At the top of the page we check to see whether the user is logged in or not
// If they are not, we redirect them to the login page.
// Remember that this die statement is absolutely critical. Without it,// people can view your members-only content without logging in.
die("Redirecting to login.php");
?><html><body><linkrel="icon"type="image/gif"href="favicon.gif"/><?php include("header.php"); ?><divid="main-box"><ul><liclass="buttons"><?php
TEXT BOX WITH A LINE FROM **TEXT.txt** SHOULD APPEAR HERE AFTER USER CLICKS BUTTONS
<inputtype="button"name="account"value="Get Your Account"onclick="#"/></li></ul></div></body></html>
I want it so when the user clicks the button, a text box appears and displays ONE line from the text file and when they view it, it deletes it from the text file.
So after the user clicks the button it displays "Eddie" line to them and then deletes it after the user sees it so that the next line "Apples" would then become the first line.
If you don't understand my question then please let me know and I will try to explain further. Thank you.
I have a table fetched using ajax, according to the choice made from my dropdown menu. In the table I have some input fields. I need to save my inputs in the table while submitting it.
If I check the source code of the page I cannot find the table fields to post using $_post since ajax is used. I am really new to ajax. Can anybody please tell me how I can submit these table input values in PHP?
In one page you use:
header('Location: ' . $url);
Suppose $url = 'www.example.com/abcd.php?action=register';
And in the "abcd.php" page just do a $_GET['action'] to get the action!
And then you do something, in this case you show a div to register!
Hope I can help,
From your posting in a thread below, you are at the beginner level in the learning phase. It will take you quite a while before you become competent. I would suggest you grab hold of this book and work through it doing some of the exercises.
Beginning PHP and MySQL: From Novice to Professional by W. Jason Gilmore
You could also visit the nettuts website, search for beginning php, and view their video tutorials.
When you feel you have reached some maturity in this PHP/MySQL subject, go look at, for example, SourceForge[^] who have a number of Open Source projects under some level of development.