
aebstract
Members-
Posts
1,105 -
Joined
-
Last visited
Everything posted by aebstract
-
if(!isset($username) || !isset($password)){ echo "Please enter ALL of the information! "; include 'login.php'; exit(); } edit: Don't forget to check the code I just posted again. I noticed you were missing a ' in your include line, so I updated that also. edit2: I just realized that the ' problem was already addressed
-
Okay, sorry I couldn't get back with a response yesterday, but I am having a new problem. That link is showing up in the nav, though they still aren't setting the class to "active" when on that specific page. url: http://jamesvalentine.org
-
That is displaying each link as $link
-
Hello, I have done something just like what I wana do, I just can't get it to work right now. I want it to run an if statement to see if you are on that page or not and if you are then it will set that link's class to active. If not, doesn't do anything. Here is what I had to do in my previous site, and I can't get it to work on the new one, could someone assist me? Previous working code: echo ' <ul id="navlist"> <li'.(($page == '1' || empty($page)) ? ' class="active"' : '').'><a href="/1/">Uniquely Yours</a></li> <li'.(($page == '2') ? ' class="active"' : '').'><a href="/2/">HAM</a></li> <li'.(($page == '3') ? ' class="active"' : '').'><a href="/3/">MacConnell Motors</a></li> <li'.(($page == '4') ? ' class="active"' : '').'><a href="/4/">Wilder Embry</a></li> <li'.(($page == '5') ? ' class="active"' : '').'><a href="/5/">d.terrell</a></li> <li'.(($page == '6') ? ' class="active"' : '').'><a href="/6/">Last November</a></li> </ul> '; Current links, any help appreciated! (just get me started on one link and ill do the rest) echo '<div id=nav> <a href=index.php>HOME</a> <a href=index.php?page=bios>BIOS</a> <a href=index.php?page=platform>PLATFORM</a> <a href=index.php?page=events>EVENTS</a> <a href=index.php?page=team>TEAM</a> </div>'; The css and everything is fine, just needing to get the class=active to work in the links if possible. Thanks!
-
It took like 15 minutes for the email to send, was a slow spot in the server or something. Sorry!
-
http://www.phpfreaks.com/tutorial_cat/7/Membership-Systems.php
-
Hello, I have a contact page that I am including in to my index page. It should be sending an email upon a completed form. Right now it gives the sent confirmation but isn't sending the email, could someone tell me why? Code: <?php header("Cache-control: private"); if (isset ($_POST['submit'])) { $problem = FALSE; if ($problem == TRUE) { $content .= 'Errors:<br />'; } if (empty ($_POST['firstname'])) { $problem = TRUE; $content = "All fields are required marked with (*) are required"; } if (empty ($_POST['lastname'])) { $problem = TRUE; $content = "All fields are required marked with (*) are required"; } if (empty ($_POST['phone1'])) { $problem = TRUE; $content = "All fields are required marked with (*) are required"; } if (empty ($_POST['email'])) { $problem = TRUE; $content = "All fields are required<br />"; }elseif (!preg_match("/.*@.*..*/", $_POST['email']) OR preg_match("/(<|>)/", $_POST['email'])) { $problem = TRUE; $content .= 'The email address you entered was incorrect<br />'; } if (empty ($_POST['press'])) { $problem = TRUE; $content = "All fields are required marked with (*) are required"; } if (empty ($_POST['addcomment'])) { $problem = TRUE; $content = "All fields are required marked with (*) are required"; } if (!$problem) { $firstname = $_POST['firstname']; $lastname = $_POST['lastname']; $phone1 = $_POST['phone1']; $phone2 = $_POST['phone2']; $email = $_POST['email']; $press = $_POST['press']; $addcomment = $_POST['addcomment']; $sendmail = " $firstname $lastname Phone Number 1: $phone1 Phone Number 2: $phone2 E-mail: $email Press/Media Affiliation: $press Additional Comments: $addcomment "; mail ('[email protected]', 'Contact Form', $sendmail, 'From: $email'); $form = 'Thank You!'; } else { $form = '<form action="index.php?page=contact" method="post"> <table> <tr> <td align=right>First Name:</td><td width=5></td><td><input type="text" class="txt" name="firstname" maxlength="20" size="20" value="' . $_POST['firstname'] . '" /></td> </tr> <tr> <td align=right>Last Name:</td><td width=5></td><td><input type="text" class="txt" name="lastname" maxlength="20" size="20" value="' . $_POST['lastname'] . '" /></td> </tr> <tr> <td align=right>Phone Number 1:</td><td width=5></td><td><input type="text" class="txt" name="phone1" maxlength="20" size="20" value="' . $_POST['phone1'] . '" /></td> </tr> <tr> <td align=right>Phone Number 2:</td><td width=5></td><td><input type="text" class="txt" name="phone2" maxlength="20" size="20" value="' . $_POST['phone2'] . '" /></td> </tr> <tr> <td align=right>E-mail:</td><td width=5></td><td><input type="text" class="txt" name="email" maxlength="20" size="20" value="' . $_POST['email'] . '" /></td> </tr> <tr> <td align=right>Press/Media Affiliation:</td><td width=5></td><td><input type="text" class="txt" name="press" maxlength="20" size="20" value="' . $_POST['press'] . '" /></td> </tr> <tr> <td align=right>Additional Comments:</td><td width=5></td><td><textarea name="addcomment" cols="36" rows="4" class="txt"></textarea></td> </tr> <tr> <td align=right></td><td width=5></td><td align=right><input type="submit" name="submit" value="Send" class="formsubmit" /></td> </tr> </table> </form>'; } } else { $form = '<form action="index.php?page=contact" method="post"> <table> <tr> <td align=right>First Name:</td><td width=5></td><td><input type="text" class="txt" name="firstname" maxlength="20" size="20" value="' . $_POST['firstname'] . '" /></td> </tr> <tr> <td align=right>Last Name:</td><td width=5></td><td><input type="text" class="txt" name="lastname" maxlength="20" size="20" value="' . $_POST['lastname'] . '" /></td> </tr> <tr> <td align=right>Phone Number 1:</td><td width=5></td><td><input type="text" class="txt" name="phone1" maxlength="20" size="20" value="' . $_POST['phone1'] . '" /></td> </tr> <tr> <td align=right>Phone Number 2:</td><td width=5></td><td><input type="text" class="txt" name="phone2" maxlength="20" size="20" value="' . $_POST['phone2'] . '" /></td> </tr> <tr> <td align=right>E-mail:</td><td width=5></td><td><input type="text" class="txt" name="email" maxlength="20" size="20" value="' . $_POST['email'] . '" /></td> </tr> <tr> <td align=right>Press/Media Affiliation:</td><td width=5></td><td><input type="text" class="txt" name="press" maxlength="20" size="20" value="' . $_POST['press'] . '" /></td> </tr> <tr> <td align=right>Additional Comments:</td><td width=5></td><td><textarea name="addcomment" cols="36" rows="4" class="txt"></textarea></td> </tr> <tr> <td align=right></td><td width=5></td><td align=right><input type="submit" name="submit" value="Send" class="formsubmit" /></td> </tr> </table> </form>'; } echo ' <center> <strong>*ROADTRIP 2007*</strong> <br /><br /> <em>Press Submission Form</em> </center> <br /><br /> PMG-Rubicon<br /> 5678 Kingsport Dr. NE<br /> Atlanta, GA 30342<br /> 310.975.4900 404.252.5689<br /> <a href=mailto:[email protected]>[email protected]</a> <br /><br /> <center> LOS ANGELES . ATLANTA . NEW YORK . NASHVILLE <br /> ------------------------------------------------------------------------ </center> <br /><br />'; echo "$content"; echo "$form"; echo '<br /><br /> <strong><center>MANAGEMENT STAFF DIRECTORY</center></strong> <br /><br /> <strong>PMG- RUBICON RECORDS GROUP, LLC</strong> <br /> Steven Paul Perry, Managing Partner/FOUNDER <br /> P.O. Box 46488 <br /> Los Angeles, California 90046 <br /> Direct Dial: 310.614.2947 <br /> WEB MAIL: [email protected] <br /> WEBSITE www.rubicontalent.com <br /> MY SPACE: http://www.myspace.com/talentgroup <br /><br /> <strong>RUBICON TALENT DEVELOPMENT GROUP</strong> <br /> Jeremy R. Harvin, Managing Partner, Product Development <br /> 5678 Kingsport Drive, NE <br /> Atlanta, Georgia 30342 <br /> Telephone: 404.252.5689 <br /> WEB MAIL: [email protected] <br /> MY SPACE: http://www.myspace.com/talentgroup <br /><br /> <strong>PERRY MUSIC GROUP OF FAMILIES, LLC</strong> <br /> Chip O’ Kelley, Manager, CORPORATE OPERATIONS <br /> P.O. Box 46488 <br /> Los Angeles, CA 90046 <br /> Direct Dial: 310-614-2947 <br /> WEB MAIL: [email protected] <br /> ONLINE STORE: www.shoprubicontalent.com (shop.rubicontalent.com) <br /> MY SPACE: http://www.myspace.com/stevenpaulisback <br /> ATLANTA 404.252.5689 <br /><br /> <strong>Managing Partner, Marketing </strong> <br /> Nathan Padgett, Web Services Manager <br /><br /> <strong>Business Affairs, Support</strong> <br /> Jeff Webster, Office Manager <br /> LOS ANGELES 310.975.4900 <br /><br /> <strong>Managing Partner, Talent Development</strong> <br /> Edward McMurray, Artistic Director <br /><br /> <strong>Managing Partner, Finance</strong> <br /> Rolando Lira, Manager, Business Affairs <br /><br /><br /> <center> <sub>*PLEASE NOTE:<br /> (All unsolicited materials submitted for consideration will NOT be returned) <br /> (In order to ensure your materials are returned to you -- a self-addressed, prepaid shipping envelope must be enclosed) </center> </sub> '; ?>
-
Without looking, I'm gonna say to add a div around everything you want centered, call it container and use this css.. html { height: 100%; } body { text-align: center; } #container { text-align: left; margin-left: auto; margin-right: auto; }
-
direct to other page if the "IF" is false?
aebstract replied to anybody99's topic in PHP Coding Help
if ($blabla == FALSE) { put this ip into banned header("Location: something.php"); } else { echo "hi"; } That what you are looking for? -
You need to put code in code tags [ code ] and [ /code ] without spaces
-
direct to other page if the "IF" is false?
aebstract replied to anybody99's topic in PHP Coding Help
I wasn't being defensive, if anything.. offensive. I am just stating that he is asking for php help. Theres a solution for his problem with php, no need to even mention javascript then? Sorry.. BTW: Headers will work, put header("Cache-control: private"); at the top of your page and you don't have anythin to worry about. -
direct to other page if the "IF" is false?
aebstract replied to anybody99's topic in PHP Coding Help
Though this happens to be the php help forums? -
direct to other page if the "IF" is false?
aebstract replied to anybody99's topic in PHP Coding Help
header("Location: something.php"); put that in your if false -
If you do end up changing the path on each page, make sure you write the path in a separate php file and include it in to the top of each page wherever you got it currently. That way you can make future changes to it very easily.
-
So much for knowing what it is you are trying to achieve vs what the code is doing. *shrugs*
-
Maybe because all of the examples I have given you, I have used somewhere in a website before and it has worked? .boxes { float: left; position: relative; top: 2px; left: 0px; margin: 5px; width: 261px; text-align: left; border:1px solid #d0d0d0; font-family:Verdana, Arial, Helvetica, sans-serif; font-size: 12px; background-color: #f6f6f6; text-align: center; } There is an exact copy of css code that is used on a div on a site I have done. It expands depending on information put in to it and there are none of the problems I have heard you list yet.
-
What do you want this code to do and what is it doing? We need some information to be able to help.
-
http://hello.com/view.php?email=2 $email = $_GET['mail']; echo "$email"; 2
-
http://meta.wikimedia.org/wiki/Using_a_very_short_URL
-
Does anyone see anything at all?
-
O.o
-
<div class="txtborder"> Make a border around this text and another and another and another and another <br /><br /> </div>
-
[SOLVED] grabbing an auto increment number??
aebstract replied to aebstract's topic in PHP Coding Help
Thanks, both of you, for the information and all. I did what orio said with the ." ". and it helped, I wasn't even thinking about that.