Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    PHP




Is It Possible To Make This? (Online Signup List)


I'm trying to create an online signup list for jobs in a "restaurant" type thing.  I've got the part where I can get users to login, signup for certain jobs and when the list is full, they can't sign up anymore.  The problem I'm now having is, I now have to create the MySQL table and the php signup page for every day of the year. Is there an easier way to create this? 

What I was thinking was if it was possible to make one signup list and have a constant variable that changes ... actually I have no clue how to get around this.  Could anyone point me in the right direction?  or should I just create all the pages manually, it's possible and I'd have to do it because the project is kinda due soon -_-.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
List Contents Of A Folder, Make List Of Links
Does anyone know how I can write a script that:

- reads in all the files in a particular directory
- displays the file names in a html list and makes a link of them:
<ul>
<li><a href="filelocation1">filename 1</li>
<li><a href="filelocation2">filename 1</li>
<li><a href="filelocation3">filename 1</li>
</ul>

etc.?

So basically it creates a list of links with the contents in that directory,
so you can download them from there.

Simple 'Who's Online?' List
I can figure out how to add people to the list. I'd presume you'd have a column in a database table called on/off. In them, you could either have 1 or 0. If someone's online, 1, if not, 0. I'd guess that the 1 would be written as they log in and the sessions are registered. But, how do you write the 0? At what point is that written? So basically, how would you do it, and code if possible?

Show List Of Users Online
How can i list the users logged into the system?

Maybe save the list of session id in application attribute?

Maintaing List Of "online" Users
I've seen a few posts asking for a way to keep a list of all "online" users. For example, when the user logs in, his/her record in the database is updated to show that the user is currently logged in. There can also be a "logout" script, which sets the user's status in the database to "logged off" when it is run. The problem is, however, that many users simply close the browser window, in which case the logout scripts does not run at all.

So far, there only good solutions for this problem involved checking user's activity in certain time increments (like 5 or 10 minutes) and if there is none, assume that the user has logged out.

However, this would not work for me, because I have to allow for arbitrary long periods of inactivity (while still browsing my website) before logging users out automatically (not just 5-10 minutes); but log users out immediately when they leave the website.

While reading the user notes in PHP manual, I've come accross a possible way of solving this problem (this script can be included in an invisible frame on any website): PHP Code:

Easy Way To Make "pages" From A Database List
If I list all the rows in a database and "LIMIT 20", how do I make it so I can go to, the next 20 rows? Say if I have 50 rows, and only want to show 20 per a page?

Signup
On my site when someone signs up a url for them is placed in my htaccess file (a url rewrite) The only problem is that if some one uses a constrictor that a htaccess file does not like a get an error.

How do i stop spaces and invalid constrictor from been used i a users username?

ISP Automated Signup Via PHP
I've been given the interesting task of developing a website for an emerging ISP who would like to handle customer signups via an online web-based signup page. Problem is I don't know where to start. Common sence tells me that I need PHP to interact with the radius server (Cistron) somehow, but that's about all I know at this point.

I'm in the process of educating myself about how the Cistron radius server works and hopefully I can figure something out.

Has anyone else worked on a similar project in the past that can provide some useful information to me?

Signup Script
I would like to know if somebody knows or haves a PHP script in order to put a link to a web page so i open and delete UNIX USERS.

Php Signup Problem
i've been trying to create a signup page that asks for a username, password and then to confirm the password. It is suppose to check how long both of them are, and if the passwords line up, that went well, but i can't make it check to see if it is being used by someone else. heres the script, good luck.

/
**signup.html*****/

<fieldset>
<form method="POST"action="signup.php">
Username: <input type="text"name="user"/><br/>
Password: <input type="password"name="passa"/><br/>
Confirm password: <input type="password"name="passb"/><br/>
<input type="submit"value="Submit"/>
</form>
</fieldset>
/
***************/

/
******signup.php*********/

<?php
/********Get info********/

$user = $_POST["user"];
$pass_a = $_POST["passa"];
$pass_b = $_POST["passb"];

/************************/

/******Key varibles******/
$flag = "OK";
$msg = "";
$num = "0";
/***********************/

/********Validate Form***/

if(strlen($user) <6)
{
$msg=$msg."(Please enter username that is more then 6 characters in
length)<br/>";
$flag="NOTOK";
}

if(strlen($pass_a) < 6)
{
$msg=$msg."(Please enter password that is more then 6 characters in
length)<br/>";
$flag="NOTOK";
}

if($pass_a != $pass_b)
{
$msg=$msg."(Your passwords don't line up)<br/>";
$flag="NOTOK";

Signup Script
In my signup script i want to make sure that the minimum passwrod length is 6, how do i do this in php?

Sms Portal Signup Script
I am looking for a php signup script which will be use to give this option to my users that they can have there favourite sms msg in their own account as well as they can submit sms messages by using thier account but its a tutorial web and i am looking this script for sms messages portal .... can anyone help me what kind of script it is...

Returning To Signup Form
i have a basic signup POST form, with php on the same page. how do i
return to this page with all the entries still present, yet with a
message at the top, for when the user enters one invalid entry?

Register_globals=OFF + Email Signup Validation ??
I am newish to PHP and wish to create an authentication system where a new
user is required to validate/complete their sign-up by clicking a link in an
email.

I am probably capable of putting something together where the user gets sent
a link with a set of values but I am sure it would require
"register_globals" set to ON.

How is this achieved with "register_globals" set to OFF?

Also would love read a decent tutorial on this subject with either
"register_globals" set to ON or OFF.

Error In Mail() For User Signup
i've made a user management system that allows users to signup to become a member of the site. when they do this an email gets sent to them that has a link that activates their account. It basically works but its having a few teething problems. I'm testing it all on localhost while i debug the site, when a user fills in their details to signup it occassionally throws up an error and doesnt send the email, when this happens the screen goes blank and the explorer loading bar shows that something is loading which obviously shouldnt be happening on localhost. when the page does appear it shows this error message:

PHP Warning: Failed to Receive in c:phpdevwwwpublicsuv
egister.php on line 129

line 129 being the line that contains the mail function. The email does not get sent but the data is entered into the database. It always works the second time i try but the user cannot now use their desired username or that email address as they have already been taken.

I need to prevent this from happening but i cant work out what the problem is, any help is much appreciated. Is there also a way i can control this error in the mail function and prevent the data from being inputted into the db should it occur? PHP Code:

Authentication Process For Email Signup?
authentication process for email signup? before confirming an email address to be a valid subscriber, i need to check that the email address is indeed the one that the user typed in. currently, i was thinking about storing the random code in a text file together with the email address to be autheticated:

email|code
autheticate list
%email%email%email

how do i autheticate it - anyone can provide an example code for this ?

No Libphp4.so File Created In Make Intstall Or Make.
I have done a make, and a make install on the 4.3.6 version, using
/usr/local/etc/php as the directory I make from. However, no matter what
I do, I do not see a php4lib.so that has been created. The documentation
I recieved (an IBM source) says that the following has to be added to the
httpd.conf file :

LoadModule php4_modulelib/apache/libphp4.so
..
..
..
AddModule mod_php4.c

here is the output from my make install :

[root@mail php]# make install
Installing PHP SAPI module: cgi
Installing PHP CGI into: /usr/local/bin/
Installing PEAR environment: /usr/local/lib/php/
[PEAR] Archive_Tar - already installed: 1.1
[PEAR] Console_Getopt - already installed: 1.2
[PEAR] PEAR - already installed: 1.3.1
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
[PEAR] DB - already installed: 1.6.2
[PEAR] HTTP - already installed: 1.2.2
[PEAR] Mail - already installed: 1.1.3
[PEAR] Net_SMTP - already installed: 1.2.3
[PEAR] Net_Socket - already installed: 1.0.1
[PEAR] XML_Parser - already installed: 1.0.1
[PEAR] XML_RPC - already installed: 1.1.0
Installing build environment: /usr/local/lib/php/build/
Installing header files: /usr/local/include/php/
Installing helper programs: /usr/local/bin/
program: phpize
program: php-config
program: phpextdist

Linking A User 'Signup Form' To 'Service Agreement'
Can someone give me a suggestion on the best way to do this? I have created a signup form which I have linked to a service agreement (waiver). I am sure the code in simple but I've never linked php pages together before.

Here's what I have so far...
1) User choses a 'product'
2) Directed to a Sign up form (simple -name, email, phone etc.)
3) Must read service agreement and accept
4) Directed to shopping cart

My trouble is between 2 and 3. I could do the server agreement in html but then I wouldn't be have any verification that registered users actually agreed to the service agreement. What kind of script would I use in the service agreement form to verify users have accepted it?

Signup Form Displaying Wrong Passwords (PASSWORD HASH)
I recently created a signup form with a user password. The forms are working, however, when I retrieve the record in MySQL the passwords are jumbled numbers and letters -not the correct passwords.

I believe this is called password hash. Why is the hash generated? I created a few user accounts but I can't login as the password entered is not the same as the myslq password generated by the hash..??

How are users suppose to login? What if they lose their password...how do I send them their password if I have a 'password hash'?

Get List Of Messages From One Table, Message List Indicator From
I have two tables. One has a list of messages left by users using fields named mbxno for the mailbox and msgno for the message number. I have another table that has mailbox settings for each user that contains a field named "messagelist" to indicate if they want to be included on the message list or not.

What I'm trying to create is a list of the most-recent messages with a lookup on the users table to indicate whether a message in the list should be included in the message list based on the user's mailbox settings.

SELECT messages.msgno, messages.mbxno, users.messagelist FROM messages, users WHERE (users.messagelist = &#391;') ORDER BY msgno DESC LIMIT 100

What I'm getting, though is a list that looks like this:

mbxno: 1114 msgno: 0412141623 msglist: 1
mbxno: 1114 msgno: 0412141623 msglist: 1
mbxno: 1114 msgno: 0412141623 msglist: 1
mbxno: 1114 msgno: 0412141623 msglist: 1
mbxno: 1114 msgno: 0412141623 msglist: 1
mbxno: 1114 msgno: 0412141623 msglist: 1
mbxno: 1114 msgno: 0412141623 msglist: 1
mbxno: 1114 msgno: 0412141623 msglist: 1

I think what's happening is that I'm using the wrong type of join and more rows are being created than necessary.

If I add "DISTINCT" to the query, I get a list of the most-recent messages as I expect, but the "messsagelist" value is sometimes wrong (again, probably because the data is getting jumbled). For example, the messagelist value for the second row (2214) should be 0, not 1.

mbxno: 1114 msgno: 0412141623 msglist: 1
mbxno: 2214 msgno: 0412141622 msglist: 1
mbxno: 2189 msgno: 0412141408 msglist: 1
mbxno: 0000 msgno: 0412141213 msglist: 1
mbxno: 0003 msgno: 0412141213 msglist: 1
mbxno: 2265 msgno: 0412132029 msglist: 1
mbxno: 0000 msgno: 0412131950 msglist: 1

How should I be doing this? If nothing else, what kind of join will work with a long list compared to a value from a short list?

Populating A List Box Or A Dropdown List Using Php And Odbc
I need to populate a list box and/or a dropdown list on a form. I have all
the bits and pieces together, all bar the code which takes the result of a
query and creates a list box.

Mailing List Manager, Send To List
I'm looking for a mailing list script (php) that has a function to let
users to reach out to all recipient on the list by simple send the
email to a specific maillist- address.

Mailman has this functionn but as a just got a webserver account I
can't use mailman nor install it.

Who Is Online?
i want to show how many visitors are on my homepage "index.php" at the same time. i do not want nor do i need them to register for membership or anything. i just want to simply show how many people are on at the same moment.

Who's Online?
Can somebody explain how these "Who's Online" features work? Do they check to see if a sessionid exists and isn't expired? Please describe the theory of how these work.

Users Online Help!
I have a column in my datasase and whenever you login, it sets it to "yes". The Users online just retrieves all users that have "yes" in that column. However, the only way to get the user off the Users Online list (make the column "no") is to go via logout. I don't want this to be the users only choice. I want the online column in the database to be set to "no" if they have been on a page for 30 minutes. Now I figured out most of the code, but I can't seem to find a way to track the number of minutes (or any time) that the user has been on the page. I tried incorporation JS but I can't get that to work. I tried cookie's but I got nothing. BTW: I'm using sessions so $_SESSION['online'] controls the online status.

Can someone please help me track the minutes the user has been on the page?

Users Online
Could some one please explain to me how to display the number users online in a table. I think I have a rough idea on how to do it, I am just..well..lost on how to do it

Basically I am asking how to add the IP into the DB, and when they leave it deletes thier ip from the DB. And it would count the number of IPs in the DB and convert that to a number. Any ideas?

Who's Online - Timestamp
i am trying to make a "whos online" type thing. the following code returns all members as being online within the last 5 mins, but i dont think my "$last_hit" variable is working properly a when i return it i get "Resource id #3" i have tried:

$last_hit[0]
and
$last_hit[0][0]

but neither seem to work, anyone have any ideas ? PHP Code:

User Online
I need to be able to tell and post it out to a web page when/who is on my website. There is a login screen, a members mysql database, and the rest of the site is php.

Online Questionnaire
i need to create an html questionnaire form that depending on how many correct answers the user answers a different message will display. how do i go about doing that in PHP?

Who's Online Script
I'm trying to use a whos online script that shows how many vistors are online my site at a time. I'm getting an error message though and cant seem to figure it out. Here's the error that shows up where i want the script to display

Warning: Supplied argument is not a valid MySQL result resource in /home/jbs/public_html/pages/clsOnlineUsers.php on line 215

And here's line 215 in the clsonlineusers.php script PHP Code:

Learn PHP Online
Any useful links?

Online PHP Editor?
I'm looking for a php editor that I can use online to modify files on my server. I did a search on the forums here, but most of the posts relating to this are rather old. The two things it needs to have is line numbers, and syntax highlighting. And it needs to be free, if possible. Ones I've found so far:

1) Helene Has weird bugs with the line numbers, if you erase lines, etc.

2) IDE.PHP Doesn't have syntax highlighting.

3) AboutEdit The plugin version is very nice -- very close to what I need. Not free, though, and I need to use this on many servers, so the cost starts getting prohibitive.

Has anyone else run across something that might work? Plain text area with javascript, flash, java applet, I don't care.

IRC Online Count
is there any way of getting the online count for an IRC channel? Best,
without creating a user and logging in?...

Users Online?
How would I go about implementing a feature that lists the number of users that are currently visiting my site (registered users with user info stored in a cookie)?

Users Online
Is there a way to see how many users that are online on a webpage right now!

Online Calendar
some quick facts to get ya started: it supports multiple calendars, custom fields within calendars. users/groups and permissions. it will include: import/export to .ics format, event validation, and searching.

Best Online PHP Editor?
what are some of the best php editors that are available for online use. As in using to edit php directly taken from a database.

Requirements:
Syntax Highlighting,
Line # Display

I've seen examples of this on forums and such, but not for editing my personal code.

Online Indicator
I ran into some problems with a really cool Perl script that enables websites to tell visitors if the owner is currently online. I am trying to translate it into PHP because the Perl script forces site owners to use SSI.

Basically, there are three scripts and a .dat file (for anyone who may be familiar with this, it comes from a script called "I am Online").

A config file (onlineconfig.php) An online checker file (check_online.php) I am online file (i_am_online.php) that site owners most use with a browser to tell visitors they are online Code:

If A Domain Is Online?
i'd like to see your best tricks to check if a domain is online ... how would you do this in php?

Looking For Online PHP Editors
I've seen lots of posts regarding PHP development environments, and I already have some good ones to use offline. Still, there has been many times when I'm away from home and need to get in and edit a file.

Has anyone run across a good web based editor for PHP? Ideally, the editor would allow for updating a file and checking it's syntax using the built-in PHP functions for syntax checking and color highlighting. Once the result is accepted, the edited file could then replace the original.

Pushed further out, it is easy to imagine an online editor with versioning ability to allow rollback to an earlier saved version. Another nice feature would be working on the code on one website and then either copying or uploading it to another site. All should be possible, and straight forward, but I'm not sure if anyone has put the pieces together in an open source project.

Practise Php Online?
is there a site where you can practise your php coding online? I'm at work and don't get ftp access to my server because they have it blocked. I would like to try some scripts to see how they responde.

Redirect If Online
Ive been looking for a nice Redirect if online script, but there i didnt manage to find one. I know its probably easy to create one, but i dont understand a single bit of PHP making this very hard for me . I found this code to redirect though:

<?php
header("Location: http://website.com/");
exit;?>

My question: Whats the best way to extend this into a "redirect if server is online" script. should i add a "if http://website.com is online, then redirect" like rule? and how could i do this?>

Survey Online
i need to make an online survey which is going to bee presented  in several pages where in which page are placed some questions. I am trying to store the answer in session until the last page of questions is presented and than to add the question to the mysql db, but it is not working. I can se that the variable of page1 can be printed in page 2 but not on page3 and further.
My question is:

How can I do so that I save all the answers to the session variables or something like that so that even if the users is surfing back and forth so the variable are not going to add to the db twice or more.

Best Online PHP Editor??
In your opinion, what are some of the best php editors that are available for online use. As in using to edit php directly taken from a database.

Requirements:
Syntax Highlighting,
Line # Display
.......

I've seen examples of this on forums and such, but not for editing my personal code.

Php Online Book
where can i find a good online php book for beginner. or give me any website that offers a good php tutorial that can be easily understand and with clear explanations.
what can you suggest for starting learning php?

where should i start to study php?how long it will take for learning php?is OOP in php is hard to learn?

Users Online
I have a timer and it times out is there anyway that i can make that timer give the user a window to extend the timer to stay signed on. because everytime it times out the user is no longer signed in on the system so some of the features I am afraid stop working. Code:

Users Online
I have a SQL Database which holds information on the people who are online on my forum. On one of  my webpages I want to display a query showing which users are online. How would I use PHP to display the results of this query?

Who Is Online Code
I have two tables.. one for guest(guest_online) and one for members(mem_online)

the code for the guest is working just right but the one to insert the member if he is logged in is not working as it should.. When i logged in, it insert the username in the mem_online table, but when i refresh the page, it keeps incrementing the members. Code:

Online Players
I have some code and it is for a online players page so it shows who is online i am trying to get it so that if there are no MODS online then it says no MODS.
I have the code for selecting the online mods below i tryed an else command but it returned nothing. Code:

Log Out And Set Online Counter To 0
I have a membership site that I created and as one of the last things I wanted to do was to set when members are online or not.  So I know there was probably an easier method but what I did was add a online field to the member table.  When a sucessful login is made they go to a loggedin.php page and on that page I have the following code:

$query = "UPDATE mwcplayers SET online=1 WHERE id= '".$_SESSION['id']."'";

This works great the users online status is set to 1.

My problem is when they log out and getting that online status set to 0 again:

here is my logout page logout.php: Code:


Copyright © 2005-08 www.BigResource.com, All rights reserved