User Profile

Collapse

Profile Sidebar

Collapse
rlm51
rlm51
Last Activity: May 22 '09, 11:46 PM
Joined: Mar 26 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • rlm51
    started a topic Having a completed order form emailed to me
    in PHP

    Having a completed order form emailed to me

    Hello everyone ... it's been a while.

    I have a form on my company website that feeds a database with 30 different fields. Now the powers that be want to have that same form (or the data within) emailed to our corporate address. Too many fields for a mailto form. Any suggestions where I might look for guidance.

    Thanks Robert
    See more | Go to post

  • Hey ... Thanks for the $_SESSION['variablename']; idea, that worked.

    I am a graphic designer, trained in art and computer science beginning a long time ago (1968). In my business I am forced into painful deadlines and stress. I appreciate any tool that can help me do my job.

    I have seen Photoshop go from v1.5 to today. I have been a beta site for Adobe, Macromedia, AutoCad and others through the years. The thing I like...
    See more | Go to post

    Leave a comment:


  • rlm51
    started a topic redirecting a login page to a url from server variable
    in PHP

    redirecting a login page to a url from server variable

    Hey everyone, hope all are fine ...

    Dreamweaver uses a login_user server behavior to send the user to a specified page on a successful login. Normally you would provide a url, but I would like to use the server variable that holds the url of the last page visited so I can use the same login form for different sections of the website.

    $MM_redirectLog inSuccess = $_SERVER['HTTP_REFERER'];
    doesn't work. The command...
    See more | Go to post

  • rlm51
    started a topic Getting a rollover image to execute php
    in PHP

    Getting a rollover image to execute php

    Hi everyone ... Hope you are all well ...

    I have a rollover image button that I need to do several things:
    1. Update a variable: <?PHP $VarNum = $VarNum + 1 ?>
    2. Open a pdf file: <a href="Catalog.p df"
    - and if possible -
    3. Update a database variable: <?PHP mysql_query("UP DATE tableA SET M = $VarNum"); ?>

    All on one click ... Could someone please give...
    See more | Go to post

  • rlm51
    started a topic Having a picture popup on my page
    in Java

    Having a picture popup on my page

    Hi everyone ... happy spring

    I am a total novice at Java Script ... so forgive me

    I have a button on my page ... when I press on that button I wish for a picture to appear, perhaps with effects, could someone please point me at a tutorial or something like that where I can start at the beginning. I have been searching, but I don't even know the correct terminology.

    Thanks to all

    Robert...
    See more | Go to post

  • rlm51
    replied to going back to previous page
    in PHP
    Thanks very much ...

    As Always ... I love this forum.

    Robert
    See more | Go to post

    Leave a comment:


  • rlm51
    started a topic going back to previous page
    in PHP

    going back to previous page

    Hey ... how is everyone ...

    I want to put a button on a page that does a "back to previous page" using

    a href="<?php $_SERVER['HTTP_REFERER'] ?>" />

    attached to the button but it doesn't work. Do I have an error in syntax?

    Thanks for your help

    Robert
    See more | Go to post

  • rlm51
    started a topic generating a string of unique random numbers
    in PHP

    generating a string of unique random numbers

    Hey everyone ... happy Friday ...

    I need to generate a string of 11 random numbers, (which in itself is not a problem) however, each needs to be unique in value. Building a tree of logical compares is all well and good, but is there an easier way? I did this years ago in Pascal, and I remember the logic, but not the mechanics.

    Is there a shortcut in PHP?

    I would appreciate any suggestions.

    ...
    See more | Go to post

  • rlm51
    replied to filtering an ip address
    in PHP
    I did a little research and found:
    $ip=$_SERVER['REMOTE_ADDR'];

    So I wrote it as:

    Code:
    $ip=$_SERVER['REMOTE_ADDR'];
    $today = date('D');	 
      if ($ip == 'my_address') {
        $hits = $row_hits[$today];
      } else {
        $count = $row_hits[$today];
    	$hits = ($count+1);
      }
    Thanks for your efforts.

    See you all next time ...

    Robert
    See more | Go to post

    Leave a comment:


  • rlm51
    started a topic filtering an ip address
    in PHP

    filtering an ip address

    I have a hit counter on my website that I wrote. I would like to filter out the ip address for our store to keep it from polluting a true record of outside hits. Is there a PHP or MYSQL system variable that records the ip address of the user so I could say something like:

    Code:
    <?PHP
    if (ip_address == 'my_address') {
       $hits = $row_hits['hits'];
    } else {
       $hits = ($count+1);
    }
    mysql_query("UPDATE
    ...
    See more | Go to post

  • rlm51
    replied to using a button to perform tasks
    in PHP
    Thanks for your reply. I actually figured it out over the weekend.
    In Dreamweaver, you can tag more than one behavior to the "onclick" so I ended up using this code:
    [code=html]
    <input name="button" type="button" class="style3" onclick="window .print() ;MM_goToURL('pa rent','../DeptSpecials.ph p');<?PHP $CouponNo = $CouponNo + 1 ?>;return document.MM_ret urnValue"...
    See more | Go to post
    Last edited by Atli; Dec 11 '07, 09:58 AM. Reason: Added [code] tags.

    Leave a comment:


  • rlm51
    started a topic using a button to perform tasks
    in PHP

    using a button to perform tasks

    Hey everyone ...

    I have a button on my page:
    [code=html]
    <input name="button" type="button" class="style3" onclick="window .print()" value="Print Coupon" />
    [/code]

    that uses window.print() to print a coupon. I would like to add a function to the code that updates a field in a database that tracks how many coupons are printed. Is there a...
    See more | Go to post
    Last edited by Atli; Dec 9 '07, 08:27 PM. Reason: Added [code] tags.

  • Thanks for replying so quickly. I will also check the java forum.

    The rollover button I have no problem with it, I use similar buttons thoughout the website.

    If I use the browser "print", it just prints the coupon without the browser shell. Can i somehow execute a browser print from within the pages code, attaching it to the rollover image? That's what I wish to accomplish.

    Thanks
    ...
    See more | Go to post

    Leave a comment:


  • rlm51
    started a topic Attaching a print function to a roll over button

    Attaching a print function to a roll over button

    Hey everyone, and a Happy Wednesday.

    I have a coupon on a webpage that includes dynamic data for product category, product, price, sale end date, etc. I would like to put a rollover button below the coupon to print it. I have tried a couple of java functions I found, but not successfully. Is there a PHP or HTML function or script I can attach through a href or something similar.

    Thanks for any help.

    ...
    See more | Go to post

  • rlm51
    replied to URL Variables
    in PHP
    Hey ...

    That worked ... Thank You RidgeDale
    See more | Go to post

    Leave a comment:


  • rlm51
    started a topic URL Variables
    in PHP

    URL Variables

    Hi Guys ...

    Trying to pass two values as url variables such as

    MonthlySpecial. php?key=2&Speci alNo=2

    I would like to set the value of the variable "SpecialNo" with another variable whose value comes from a database table.

    I have tried:

    MonthlySpecial. php?key=2&Speci alNo=$SpecialNo ;
    MonthlySpecial. php?key=2&Speci alNo='$SpecialN o';
    MonthlySpecial. php?key=2&Speci alNo=['$Special'];...
    See more | Go to post

  • rlm51
    started a topic URL Variables
    in PHP

    URL Variables

    Hi Guys ...

    Trying to pass two values as url variables such as

    MonthlySpecial. php?key=2&Speci alNo=2

    I would like to set the value of the variable "SpecialNo" with another variable whose value comes from a database table.

    I have tried:

    MonthlySpecial. php?key=2&Speci alNo=$SpecialNo ;
    MonthlySpecial. php?key=2&Speci alNo='$SpecialN o';
    MonthlySpecial. php?key=2&Speci alNo=['$Special'];...
    See more | Go to post

  • Hey ...

    I used the case statement and it worked. I did have to put it right at the top under the first

    <?php require_once('. ./Connections/conn_specials.p hp'); ?>
    <?php

    It worked perfectly, and will provide the key to this whole application ... that's the second time I have gotten a solution from this forum. I am very grateful.

    Thank you to Atli, Ronverdonk, and Nathj ......
    See more | Go to post

    Leave a comment:


  • Sorry ... I am fairly new at writing code outside of Dreamweavers built in server behaviors ...

    I took your advice and

    [code=php]
    if ($_SESSION['skey'] = 1)
    THEN ($tblname = ('tbl_1'));

    elseif ($_SESSION['skey'] = 2)
    THEN ($tblname = ('tbl_2'));

    else ($tblname = ('tbl_3'));

    end if;
    [/code]
    then do the sql insert into $tblname where...
    See more | Go to post
    Last edited by Atli; Oct 3 '07, 12:11 AM. Reason: Added [code] tags.

    Leave a comment:


  • Choosing a database table dynamically by the value of a session variable

    I have a database with several tables designating different product categories. Within each table is many rows representing different products. I want to be able to choose product category table dynamically in a conditional statement based on the value of a session variable. I am using php in dreamweaver 8.
    See more | Go to post
No activity results to display
Show More
Working...