Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Meekos

    Client Request

    Thanks for the replies. I didn't think it was possible without the standard form. I didn't want to say so until I was certain.
  2. Meekos

    Client Request

    My client recently requested the ability to capture email addressed of visitors to their web site. Is this even possible? If so can it be done with PHP? If not what script would you recommend? Any direction would be greatly appreciated. Thanks.
  3. Meekos

    Client Request

    My client recently requested the ability to capture email addressed of visitors to their web site. Is this even possible? If so can it be done with Javascript? If not what script would you recommend? Any direction would be greatly appreciated. Thanks.
  4. Meekos

    Date help

    I'm sure this is not the best way to accomplish this but here you go. // explode my date into an array to separate it into variables. $mydate = explode('-',$rec['showdate']); // separate out the components assuming format is YYYY-MM-DD $y = $mydate[0]; // year is first $m =...
  5. Meekos

    Email from mysql using php

    You can use a while statement to loop through the email addresses and send out mail. $body = $_POST['body']; // text you typed into the form while ($rec=mysql_fetch_assoc($result)) { mail($rec['emailaddress'],$subject,$body,$from); } Just a thought.
  6. Meekos

    multipart/form-data and variable problem

    Try $action = trim($HTTP_POST_VARS['action]); if ($action == 'Make Changes') { echo 'true'; } else { echo 'false'; } Hope this helps.
  7. Meekos

    comparing a string to a Mysql db result

    Try using the trim function if($obj_db->fetch_array('password') == trim($str_login_password)) { //code }
  8. Meekos

    multipart/form-data woes

    Have you tried assigning the post variable to a variable then checking it against the string? $yv = trim($_POST['yourvar']); if ($yv == 'test') { echo 'true'; } else { echo "Variable yv is $yv"; } What do you get?
  9. Meekos

    Validate Phone Number

    Can anyone tell me how to validate a phone number entered by our form users? I want to verify the number is in the format 999-999-9999 and digits not characters are used. For example, AAA-ZZZ-1111. Help!
  10. Meekos

    Editing MySQL table data records

    Let's try to debug this with a couple of echo statements. Also there are too many ; in the UPDATE SQL statement. Try this code. Let me know what happens. if (isset($_POST['save'])) { // save button was clicked //Validate the data in your form here. //Set your select statement based...
  11. Meekos

    storing & retrieving data

    Sorry I messed up on the first one. Here are the changes. <tr> <td>Select an Image:</td> <td> <?php $selected = ""; if (!isset($_POST['image'])){ echo "<option selected value=''>select an image...</option>"; } else { echo "<option value=''>select an image...</option>"...
  12. Meekos

    storing & retrieving data

    See if this works out any better for you. <tr> <td>Select an Image:</td> <td> <?php if (!isset($_POST['image'])){ echo "<option selected value=''>select an image...</option>"; } else { echo "<option value='$selected'> $selected_display </option>"; } $selected =...
  13. Meekos

    funtion to display decimals

    number_format($variable, 2);
  14. Meekos

    reading from txt, using single quote

    Try changing echo statement echo '<img src="new/'.$picture.'" width=409 height=293 style="margin-left: 87px">'; or use print print '<img src="new/' . rawurlencode ($line) . '">'; Let me know how it turns out.
  15. Meekos

    Editing MySQL table data records

    I'm sure there is more than one way to do this, but this is how I do it. I use the same page to list, edit or add, but I've remove the add portion. Hope it helps. function display_list() { global $message; $sql = "Select saleid, title, price from yourtable order by title"; $result =...
  16. Meekos

    How did somebody exploit my programming?

    Are you using a database for the users that are not banned? If so create a banned flag and activate it instead of using the .txt folder to ban members. It would be more secure. Just a thought.
  17. Meekos

    protecting php files

    What about .htaccess and redirecting? I don't know much about them but I've heard people say they use it to protect there stuff. Try doing a search on this or the Apache forum for more info.
  18. Meekos

    Header Error

    Thanks for the advice. I had an echo at the very top of my code. I did a search for header errors before posting. None of them worked. Thanks for this link it was very informative.
  19. Meekos

    Header Error

    I am receiving this error when I try to redirect to another page in my web site. Cannot modify header information - headers already sent by I've identify that the problem is with this code. if (!isset($_SESSION['admin']) || $_SESSION['admin'] != true) { header ("Location...
  20. Meekos

    CMS - Insert a string in a specific part

    I am unclear of what you are trying to accomplish. Are you trying to split the string at the 20th character, add the image string to the end of the first part, then reconnect the two string back together again?

Part and Inventory Search

Back
Top