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
User Profile
Collapse
-
Having a completed order form emailed to me
-
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... -
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... -
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... -
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... -
-
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 -
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.
... -
I did a little research and found:
$ip=$_SERVER['REMOTE_ADDR'];
So I wrote it as:
Thanks for your efforts.Code:$ip=$_SERVER['REMOTE_ADDR']; $today = date('D'); if ($ip == 'my_address') { $hits = $row_hits[$today]; } else { $count = $row_hits[$today]; $hits = ($count+1); }
See you all next time ...
RobertLeave a comment:
-
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 -
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"...Leave a comment:
-
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... -
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
...Leave a comment:
-
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.
... -
-
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'];... -
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'];... -
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 ......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...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.
No activity results to display
Show More
Leave a comment: