Page 1 of 1
Plea se help I need a "Submit email to access webste script
Posted: Wed Aug 12, 2009 5:29 pm
by hsarbaz
I want to create a simple form that requires people to submit their email before they are allowed to acces the index.html page.
I know it's easy to do I'm learning php. Can anyone please help me? I have to get this done by tomorrow!
Thanks!
Re: Plea se help I need a "Submit email to access webste script
Posted: Wed Aug 12, 2009 8:07 pm
by califdon
You can find many scripts at sites for that purpose, like hotscripts.com and many others. This is a forum for helping PHP developers who have a specific coding problem.
Re: Plea se help I need a "Submit email to access webste script
Posted: Wed Aug 12, 2009 8:41 pm
by aceconcepts
I'd listen to califdon but if you're interested in learing then I'd research html forms, php variables and some condition statements e.g. IF THEN ELSE etc...
Use your noggin and do some research via a preferred search engine. Once you have something but are still stuck, then come back to us. It always helps if you have something to show

Re: Plea se help I need a "Submit email to access webste script
Posted: Thu Aug 13, 2009 7:36 pm
by califdon
I think the issue here is that someone that has a deadline "tomorrow" clearly isn't planning to learn how to do it himself. It's either a homework assignment or his boss is asking for it, in either case I don't feel like doing his work for him.
Re: Plea se help I need a "Submit email to access webste script
Posted: Thu Aug 13, 2009 8:16 pm
by mars_rahul
ok do this
When people login to ur site.First they goes to index.php.
For Example:
http://www.xxxx.com/index.php
In index.php;
if(session['visited'] == false)
{
header("Location:email.php");
exit();
}
else
{
IT will be the normal home page.
}
And in Email.php:
if(isset($session['visited']))
{
header("Location:index.php");
}
else
{
$session['visited'] = True;
------ Here goes the normal code of email.
}