Jump to content

shibbi3

Members
  • Posts

    23
  • Joined

  • Last visited

    Never

Everything posted by shibbi3

  1. Hello Everyone, I just wanted to get everyones opinion on this, I am looking to build an online shopping cart, would it be best to build one from scratch or to see what is out on the net and build from there? Thanks for any suggestions!
  2. Alrighty, here is it. I managed to get into the setup script and make the config.inc file and copy it over to the main folder but it says this: Error MySQL said:  #1130 - Host 'localhost' is not allowed to connect to this MySQL server im not allowed to connect to my own server!  ???  :-\ [code] $cfg['Servers'][$i]['host'] = 'localhost'; $cfg['Servers'][$i]['extension'] = 'mysql'; $cfg['Servers'][$i]['port'] = '3306'; $cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['auth_type'] = 'config'; [/code] any suggestions?
  3. hi everyone, i am trying to use phpmyadmin to configure my database but i cant seem to connect to mysql server but i was able to before. does anyone know how to go about solving this error msg? Error MySQL said:  #2003 - The server is not responding  I am able to open up mysql command window and mess around with the database there so im not sure why phpmyadmin cant connect to it.
  4. thx fert [quote]Best. Advice. Ever.[/quote] is this a joke?  ??? or is phpbb not a good idea?
  5. Hi everyone, I am working on a project for which I want to include a basic discussion forum, not to advanced. From searching on the web, I a few sites that offer up pre-made forums and you can tweak them to your liking. I wanted to ask the people of this forum what their opinion is on creating a a basic forum for a website. Should I create it from scratch or see whats out there a build from there? Does anyone know any ideas on how to approach this? thanks for any suggestions.
  6. THANK YOU!!!!!! I needed both the submit button and the values for the select menu for it to work. was a silly mistake :S THANK YOU AGAIN!!!!!
  7. hi everyone, I am having trouble integrating the select menu and php. I am not sure how to access the selected value Can anyone tell me what is wrong with this code? [code] <form method="post" action="test.php" enctype="multipart/form-data">     <select name="about">     <option selected="selected">General</option>     <option>Lures</option>     <option>Sales</option>     <option>Other</option>     </select> </form> <?php           $selected = $_POST['about'];             echo $selected; ?> [/code] shouldnt that echo the selected value?
  8. hey everyone, I was wondering what I am doing wrong here: [code] <b>Attachment:</b><br /><input type="file" name="probe" value="<?php if (isset($_POST['probe'])) echo htmlentities(stripslashes($_POST['probe'])); else echo ""; ?>" size="20"/></p>   <br />   <p><input type="submit" name="form_submitted" value="OK - Submit" /></p>   <?php $fileatt_name = $_FILES['probe']['name']; $fileatt_tmp = $_FILES['probe']['tmp_name'];                       if(empty($fileatt_name))                       {                               echo 'empty';                       }                         else                             {                                   echo 'good';                         } ?> [/code] It keeps saying that it is empty but there shouldn't be right? lil confused... anyone know?
  9. hey everyone, does anyone know what kind of error this is?? Mailer Error: Language string failed to load: from_failedtest1234@yahoo.com the program sends an email out after the user submits the form. any ideas??
  10. hey everyone, Does anyone know if its possible to create a php mail attachment program that is similar to the system used by gmail? I've got an Email program working but it only sends text and html, but i want to add possible attachments to the email something similar to the gmail system. Anyone have any suggestions?
  11. hi everyone, I was just wondering if anyone knows how to do the following: Right now I have a form setup and when the user submits it, I want a new page to come up that says 'FORM SUBMITTED THANK YOU', and then after a 5 second delay it auto redirects the user back to the main page say 'index.php'... Im not sure if this is a php problem... does anyone know? My form is the following: [code] <form method="post" action="<?php echo basename($_SERVER["PHP_SELF"]); ?>" enctype="application/x-www-form-urlencoded"><div>   <p><b>Name:</b><br /><input type="text" name="name" value="<?php if (isset($name)) echo htmlentities(stripslashes($name)); else echo ""; ?>" size="35" /></p>   <p><b>E-mail:</b><br /><input type="text" name="email" value="<?php if (isset($email)) echo htmlentities(stripslashes($email)); else echo ""; ?>" size="35" /></p>   <p><b>Subject:</b><br /><input type="text" name="subject" value="<?php if (isset($subject)) echo htmlentities(stripslashes($subject)); else echo ""; ?>" size="35" /></p>   <p><b>Message:</b><br /><textarea name="text" cols="55" rows="12"><?php if (isset($text)) echo htmlentities(stripslashes($text)); else echo ""; ?></textarea></p>   <br /><br />   <p><input type="submit" name="form_submitted" value="OK - Submit" /></p>   </div></form> [/code] Everything is working except I want a new page to come up when its submitted and After a 5 second stop  on the new page, I want to redirect the user to the main page. Thanks for any suggestions!
  12. Alright. I've setup a mail server using this program http://www.code-crafters.com/abilitymailserver/ I found out that port 25 is blocked. So I changed the port to 465 on my local mailserver which is not blocked by my ISP but im not sure if I can even use this port to send mail (ability mail server). I've run the code and it is still not working, and I dont think I am connecting to my SMTP server properly. (If anyone has a better program plz suggest it) All I am trying to do is to get the following to send an email to my gmail account from my local Apache/PHP5 setup. [code] <?php     $to = 'joabchen@gmail.com';     $subj = 'hi';     $body = 'hello';     $headers = "joabchen@gmail.com\n";     $p5 = '-f joabchen@gmail.com';     if(mail($to,$subj,$body,$headers,$p5))     {         print "successfull";     }     else     {         print "ERROR - not sent";     } ?> [/code] Does anyone know a solution to this problem? I think I am confused on the information flow with this problem. I dont see why I need an SMTP server setup and how the information is flowing from my ISP --> SMTP --> Gmail. If thats even how the information is being transferred. if anyone has a solution plzzzzzzzzzzz help!!! thank you.
  13. would this work on an local apache setup??? how would you modify the php.ini file??? im really new to this and cant seem to get this to work and i think its the smtp setup... im trying to relay it through gmail... so smtp.gmail.com port 465 [code] <?php     $to = 'joe12@gmail.com';     $subj = 'hi';     $body = 'hello';     $headers = "joe12@gmail.com\n";     $p5 = '-f joe12@gmail.com';     if(mail($to,$subj,$body,$headers,$p5))     {         print "successfull";     }     else     {         print "ERROR - not sent";     } ?> [/code] plz heeelp
  14. do you remember how to go about setting it up on a local network?? So what is the purpose of the mail() function?? because when I run the code it still returns a true value saying it has sent it.
  15. i am currently trying it on my local server. but i eventually want it to run on a live server. is it 2 different setups? thanks for the help.
  16. hey everyone, ive been trying to create a form and use the mail() function to send out an email but I cant seem to get it to work. [code]       $mail_header = "From: ".$name." <".$email.">\n";       $mail_header .= 'MIME-Version: 1.0' . "\r\n";       $mail_header .= "Content-Type: text/plain";       mail($mailto,$mail_subject,$text,$mail_header);   [/code] $mailto, $mail_subject, $text, are all gathered from the form. All variables are all defined but when I click my send button it runs the code and nothing sends. I think its not connecting to a server. Im not really sure how to work this function. I was looking in the PHP.INI and I was just wondering if there is anything I need to setup in there for this to work? [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 Thanks for any help Joe
  17. great! that worked. Now that I have the selections I guess ill try to work out a soln :S. Thanks a lot for the help!
  18. Thanks for the suggestion! I think I am overcomplicating things. What I want to accomplish is to have a jump menu with the following options: [code]      <form name="form_select_bait" action="index.php" method="get">       <select name="menu_bait_type" >       <option value="4" selected>Select Bait       <option value="1">Hard Bait       <option value="2">Saltwater Bait       <option value="3">Swim Bait       </select>       <input type="button" value="Go">     </form>   [/code] So depending on the option, I would like to stay on the same page say index.php and display different pictures depending on the selection. Ive tried to check and see if my selection is working and it doesnt seem to be working. [code]     <?php           $selection = $_GET['menu_bait_type'];         echo "my $selection"; ?> [/code] Any suggestions on attacking this problem? thanks for the help!
  19. ahhh I see. For what I want to accomplish, I need to run the function MM_showHideLayers('Layer1','','hide','Layer2','','hide','Layer3','','hide'); is there a way to run this interweaved with the conditions I set in PHP? Thanks for the help!
  20. lol haha, I have no idea what they're called, one of my teachers called them sexy brackets though :S. Anyways thanks for the help. So I take it I can interweave javascript and php together like that? it doesnt seem to be showing and hiding my layers :(. I've got a form with a jump menu and 3 layers drawn out. I want to show and hide those layers according to the selection :S. There must be an easier way? [code] <form name="form_select_bait" action="products.php" method="post">     <font color="#000000" size="4" face="Copperplate Gothic Bold, Copperplate Gothic Light">Select Bait:</font>       <select name="menu1" >       <option value="Select Bait" selected>Select Bait</option>       <option value="Hard Bait">Hard Bait</option>       <option value="Saltwater Bait">Saltwater Bait</option>       <option value="Swim Bait">Swim Bait</option>       </select>       <input name="selection" type="button" value="Go">     </form>                <?php           $selection = $_POST['selection'];                  if ($selection == 'Hard Bait')         {         ?>             <script language="JavaScript">                 MM_showHideLayers('Layer1','','show','Layer2','','hide','Layer3','','hide');             </script>     <?php         }         else if ($selection == 'Saltwater Bait')         {         ?>             <script language="JavaScript">                 MM_showHideLayers('Layer1','','hide','Layer2','','show','Layer3','','hide');             </script>     <?php         }         else if ($selection == 'Swim Bait')         {         ?>             <script language="JavaScript">                 MM_showHideLayers('Layer1','','hide','Layer2','','hide','Layer3','','show');             </script>     <?php         }         else         {         ?>             <script language="JavaScript">                 MM_showHideLayers('Layer1','','hide','Layer2','','hide','Layer3','','hide');             </script>     <?php         }         ?> [/code]
  21. Hello Im not sure if the follow can be done [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /] anyone have any suggestions?? thanks. <?php $selection = empty($_POST['selection']); if ($selection == 'Hard Bait') { ?> <script language="JavaScript"> MM_showHideLayers('Layer1','','show','Layer2','','hide','Layer3','','hide'); </script> <?php } else if ($selection == 'Saltwater Bait') { ?> <script language="JavaScript"> MM_showHideLayers('Layer1','','hide','Layer2','','show','Layer3','','hide'); </script> <?php } else if ($selection == 'Swim Bait') { ?> <script language="JavaScript"> MM_showHideLayers('Layer1','','hide','Layer2','','hide','Layer3','','show'); </script> <?php } else { ?> <script language="JavaScript"> MM_showHideLayers('Layer1','','hide','Layer2','','hide','Layer3','','hide'); </script> <?php } ?>
  22. shibbi3

    jump menu

    Hello Everyone, Here is my problem: I created a jump menu in HTML <select name="menu1" onChange="MM_jumpMenu('parent',this,0)"> <option selected>unnamed1 </option> <option>unnamed2</option> <option>unnamed3</option> </select> and what I want to accomplish is if i selected option 1 I want to show a frame and hide all others depending on which option I select. I've tried to use the MM_showhidelayer function but it doesnt correspond to a particular option :(. HEEEELP! shib
  23. Hello Everyone, I am pretty new at PHP and I dont know if it is required for what I want to accomplish, but here is my problem: I created a jump menu in HTML <select name="menu1" onChange="MM_jumpMenu('parent',this,0)"> <option selected>unnamed1 </option> <option>unnamed2</option> <option>unnamed3</option> </select> and what I want to accomplish is if i selected option 1 I want to echo something on the exact same page say index.php without going to a different page, and same goes for option 2 and 3. I've seen this done on some pages and I just want to know how they achieve it without making a totally new page for each option and updating the current page as you move through the selection. It seems kinda neat, any help would be awesome! thanks. shib
×
×
  • 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.