Jump to content

Cobra23

Members
  • Posts

    49
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Cobra23's Achievements

Member

Member (2/5)

0

Reputation

  1. Just saw your last message. Try and change that form action to mailForm.php ;-) . The reason you got that error is because you have thankYou.php in the forms action while the $email is not even defined on the thankYou.php page.
  2. The first error message, the mail() function expects 3 parameters $message = 'My message'; mail($admin, $subject, $message); I've no idea why you got rid of $message previously. I asked where it was defined. 2nd error. I notice from the error address that mailForm.php is in fact THAT PAGE. If you delete header('mailForm.php'); you'll solve that error. Also, what I'm trying to figure out is why you have "thankYou.php" in the forms action when you want to submit this page to mailForm.php (which is the same page you are submitting it from) I think I understand what you did with the form action there. With the code you showed you, you merged the two pages together into one ... Just to show us.
  3. Thats why i'm here. I know it's going to be implementing bits by bits of different programming languages and was hoping to see if there is a quick solution for each of those parts that will help me on my way to what I want to do. As I have said, I'm new to API's and JSON. I was really hoping to be guided on how I can go about this with any quick solution to generate the codes if possible (which would be a bonus but unlikely). I also want to see what is the best options for each one especially the kind of API's to use as well as if JSON is the right secure solution for this project or if there are other choices that would be recommended. Just to note that my main skills are html, php, css, javascript, sql.
  4. My mistake. cheers for correcting it Barand
  5. I understand you don't have much knowledge of php programming. When you get an error in php it always means that the error has happened anywhere ahead of that line number ... never below it. I would recommend you to delete the following code } if($_POST['submit']){ normally if(isset($_POST['submit'] is the correct code but you don't need to do it twice in your case. Also: } else { echo "<h4>Error - Recovery Error</h4> <p>There was an error sending a recovery password. If the problem persists, please contact us directly.</p>"; } header(Location: 'mailForm.php');//change to contactUs.php when testing is done } Is the correct order due to that mailForm.php being redirected after the validation is done. But i'm getting the feeling that the mailForm.php code is something else and shouldn't be there at all. Maybe it's supposed to be an include file but i can't say. Can you post the mailForm.php code?
  6. Always google the error message if you don't know what it means. That error usually means that you forgot a closing brace } Also, get rid of the following code $error_message = and replace it with echo You should also have your header(Location: ....) below all the code and inside the if($_POST['submit']){ } so everything else works before you are redirected
  7. $admin = "mindiapolis@gmail.com"; $subject = "inquiry about Media Services Unlimited"; if(mail($admin, $subject, $message)){ echo "thank you"; exit; } else { $error_message = "<h4>Error - Recovery Error</h4> <p>There was an error sending a recovery password. If the problem persists, please contact us directly.</p>"; } As seen above, always add an error message if the mail fails. However, are you sure that the header('contactTest.php') is even gathering the information? It should always be like header('Location: contactTest.php'); Finally, where does the $message data come from? I don't see this anywhere. Is it in the functions.php? As soon as header('contactTest.php') works, the mail message will be skipped as your redirecting the page to that area.
  8. Hi Guys, I'm new to this API and JSON stuff so bare with me. Is there any source code available that allows me to start off building an admin panel on site A where users can't get the source code from the site once they log into site A admin panel. I heard that JSON can do this. Also is there a simple Secure API source code that allows site A to show content on site B (another domain)? I don't want to use iFrames as i want to be able to edit the content on site A for site B to automatically be changed when it's saved. Also another site (site C) to have their own content thats different to site B. What i'm really looking for is the full source codes with steps by steps on how to change this the way i want to change it. I've searched online for 2 weeks now and am still struggling to find anything and how to implement it. Even with REST. Can you please advice me on this with any helpful solutions. I hope this is clear enough. Thanks
  9. Hi Guys, I have a navigation menu that works great on a desktop however on a mobile or touch screen device the navigation menu doesn't seem to pause when i click on the drop down menu. Any help with a solution to this? index.php with menu <div class="header"> <div class="nav"> <ul class="drop-menu"> <li><a class="first current" href="#"><span class="first-border-left"> </span>home</a></li> <li><a href="#" title="About Us">about us</a> <ul> <li><a href="#" title="Latest News">Latest News</a></li> <li><a href="#" title="Why choose us">Why choose us</a></li> <li class="end"><a href="#" title="Mission Statement">Mission Statement</a></li> </ul> </li> <li><a class="last" href="#" title="Contact Us"><span class="first-border-right"> </span>Contact Us</a></li> </ul> </div> </div> css file .header .nav {min-height:58px; position:absolute; top:193px; z-index:6;} .drop-menu { margin:0 0 0 0px; padding:0 0 0 0px; list-style: none; width:940px; font-size:14px; line-height:58px; text-transform:uppercase; } .drop-menu li a { text-decoration:none; color:#fff; font-family:"Trebuchet MS", Arial, Helvetica, sans-serif; width:146px; text-align:center; display:block; border-right:1px solid #616161; background:url(menu-tail.gif) 0 0 repeat-x #0c2362; } .drop-menu li a:hover { color:#fff; background:url(menu-hover.gif) 0 0 repeat-x #0c2362; } .drop-menu li.dropHover a { background:url(menu-hover.gif) 0 0 repeat-x #0c2362; } .drop-menu a.current { color:#3e3e3e; background:url(menu-active.png) 0 0 repeat-x #d8d6d6; border-top:none; } .drop-menu li.dropHover a.current { color:#3e3e3e; background:url(menu-active.png) 0 0 repeat-x #d8d6d6; } .drop-menu ul { position: absolute; top: -999em; background:url(submenu-tail.png) 0 0 repeat !important; } .drop-menu ul li { width: 100%; } .drop-menu li:hover { visibility: inherit; } .drop-menu li { position: relative; background:none; float:left; line-height:58px; height:58px; } .drop-menu li li { font-size:12px; height:40px; line-height:40px; background:url(menu-spacer.gif) center bottom no-repeat; } .drop-menu li .end { border:none; background:none; } .drop-menu li li a { font-family:"Trebuchet MS", Arial, Helvetica, sans-serif; font-weight:bold; color:#fff; line-height:40px; height:40px; width:188px; overflow:hidden; display:block; border:none; background:none !important; } .drop-menu li li li { height:34px; line-height:34px; } .drop-menu li li a:hover, .drop-menu li li.dropHover a { color:#038ee7; } .drop-menu li li li a { height:34px; width:200px; font-size:12px; padding:0; margin:0; color:#fff !important; text-align:center; line-height:34px; border:none; background:url(menu-spacer.gif) center bottom no-repeat; } .drop-menu li li li a:hover { color:#038ee7 !important; } .drop-menu li li li li { height:34px; line-height:34px; } .drop-menu li li li li a { height:34px; width:200px; font-size:12px; padding:0; margin:0; color:#0c2362 !important; text-align:center; line-height:34px; border:none; background:url(menu-spacer.gif) center bottom no-repeat; } .drop-menu li li li li a:hover { color:#038ee7 !important; } .drop-menu a { display: block; position: relative; } .drop-menu li:hover ul, .drop-menu li.dropHover ul { left: -1px; top: 58px; z-index: 99; } ul.drop-menu li:hover li ul, ul.drop-menu li.dropHover li ul { top: -999em; } ul.drop-menu li li:hover ul, ul.drop-menu li li.dropHover ul { left: 188px; top: 0; } ul.drop-menu li li:hover li ul, ul.drop-menu li li.dropHover li ul { top: -999em; } .drop-menu .first { width:84px; border-right:1px solid #616161; position:relative; } .drop-menu .first span.first-border-left { width:6px; height:58px; float:left; background: url(nav_left.png) top left no-repeat; } .drop-menu .last span.first-border-right { width:6px; height:58px; float:right; background: url(nav_right.png) top right no-repeat; } .drop-menu .last { width:120px; border-right:none; position:relative; }
  10. Hi Guys, I have an header.php file with a unclosed { after logging into a system. I tried to include that header.php in my index.php file with a footer.php that has the closing }. However, php does not allow this and only allows it to have an open { and closting } on the same page. Is there a way around this so i can have the header.php and footer.php included in the index.php file? index.php <?php include('http://www.mydomain.com/login/header.php'); ?> ----- html code here ------ <?php include('http://www.mydomain.com/login/footer.php'); ?> header.php <?php mysql_connect("localhost", "user", "pass") or die(mysql_error()); mysql_select_db("db") or die(mysql_error()); if(isset($_COOKIE['ID_my_site'])) { $name = $_COOKIE['ID_my_site']; $password = $_COOKIE['Key_my_site']; $check = mysql_query("SELECT * FROM users WHERE name = '".$name."'") or die(mysql_error()); while($collect = mysql_fetch_array( $check )) { $plan = $collect['plan']; if ($password != $collect['password']) { header("Location: http://www.mydomain.com/login/"); } else if ($plan == 'MyPlan') { ?> footer.php <?php } else { header("Location: http://www.mydomain.com/login/"); } } } else { header("Location: http://www.mydomain.com/login/"); } ?>
  11. Thats weird !! The space solved the problem. However other images are not affected with the space there. That is surely very strange. Cheers mate. Do you know why that is?
  12. strangely .... i never have a css problem i couldn't solve. I tried the path three different ways !! Copied image to two folders and then put in both full paths and it still doesn't work !! If i use background-colour then the colour will be shown instead.
  13. I never thought i'd ask for css help. However i have a problem with setting the background image to display. Css is: float: left; padding: 15px 0; position: absolute; left: 0; top:45px; display: none; width: 600px; height: 300px; background: url (images/navbg.png) repeat; color: #fff; -moz-border-radius-bottomright: 5px; -khtml-border-radius-bottomright: 5px; -webkit-border-bottom-right-radius: 5px; -moz-border-radius-bottomleft: 5px; -khtml-border-radius-bottomleft: 5px; -webkit-border-bottom-left-radius: 5px;
  14. What's $link assigned to ? I think there's no need for it but your using mysqli. I'm always working with MySQL
  15. And from that line it's getting the $url from the first line of the function. BUT where is that $url in the function line getting that URL address from ?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.