Archive

Posts Tagged ‘Value’

Pull # From Url String

January 20th, 2012 Comments off

I have a url http://www.asdf.com/#444 and I want to know whether the bookmark is 444 when someone visits this URL from another website. Note that the visitor is not coming to this URL from a place within my website.

I need a way to find the 444 value and get that value into my php. I need a snippit of php (and whatever other supporting code that it takes to get the 444 value that will be passed to my php code) that only shows a div if the 444 exists. “Show” the div if it exists. The div s…

Categories: div, HTML, PHP, URL Tags: , , , , , ,

Jquery Autocomplete Key Value Pair

January 17th, 2012 Comments off

I need a talented Javascript programmer, experienced with Jquery and JqueryUI to modify the JqueryUI Autocomplete function (jqueryui.com/demos/autocomplete/)

I need the Autocomplete function on a field, that when a value is selected, it will direct the user to a page based on key of that value.

example data…

1 = apple
2 = banana
3 = orange
4 = grapes
5 = kiwi
6 = grapefruit

Someone entering the word ‘grape’ in the field would be able to see ‘grapes’ or ‘grapefruit’ then upon c…

Form Redirect Based On Input Value

January 10th, 2012 Comments off

Hi,

I have a page that submits a form to a hidden

on the page using htmlhttprequest, and updates the div with the information submitted. This is working fine.

I would like to expand this changing the form action to go to a different page depending on how many characters are entered into the form input value, for example:

Use number of characters entered into field.

So, if the user enters 4 characters into the name input box the pag…

Mysql Php

December 27th, 2011 Comments off

Php script to interact with table MYSQL
Two columns in same table
arrival_date
from_date
(id = primary key)

1. Check there is a value in column arrival_date
If value : continue or else do nothing

2. arrival_date

date format = dd/mm/yy

I need to take this and insert into

from_date

date format = yyyy-mm-dd

3. final stage remove value in arrival_date

Example

id from_date arrival_date
1 0000-00-00 27/12/11
2 2012-03-12
3 0000-00-…

Join To Earn Minimum 1500usd/month As An Ebay Seller

December 5th, 2011 Comments off

I need established Ebay sellers (new comers also welcome) for a part time work.

Spend one hour per week (may vary depend on you success) and list my items for me and get 20% of the sale plus Ebay final value fee which is 9% of the sold value and Paypal fee which is 2.9% + $0.30 which is total of 31.9%+$0.30 of the sold item value.

Long term business relation expected. Prefer female sellers as per most of my items are for women. Males also welcome!

I need serious sellers and will do tra…

Categories: eBay, Long Term Tags: , , , , , ,

Value Place (google Map Sdk + Community)

November 25th, 2011 Comments off

The website I want to do is very much like to achieve this as the structure and function: http://www.tassa.li.
Will serve to give assessments to “places” as described below. The most important part to realize is the interaction between the website and Google Maps API, as seen from the example site, the user must specify a place on the map by clicking on the map or by entering the address of the desired place . In addition to this, users will have to enter textual data (2 or 3 to about Ex: plac…

Database Mod Script

November 13th, 2011 Comments off

I’m looking to find a quick solution to the following problem.

I used to manually place embed code for my videos in my database, but now I place the video url and sponsor url separately to provide more flexibility. I have thousands of entries so I don’t have time to go through manually. I have always placed the full path of the .flv file. So I need a script to do the following:

Locate any link ending with flv such as http://sampledomain.com/flv/video1.flv, and place that value in the video_url column. If it cannot find an flv it will place a default value.

I also need it to locate any link that is not a picture (jpg, png etc) or flv and place that value in the sponsor_url column. If it cannot find any link it will place a default value.

I hope this makes sense. Please feel free to ask any and all questions before bidding.

Programing In Assembly Language 2

November 5th, 2011 Comments off

Computer Science 3160 Programming Assignment 6
Due Wednesday, November 9 at midnight
I will post program for exercise 4, page 185.
Modify this program (exercise 4, page 185) and implement exercise 5, page 221.

(Exercise 5, Page 221)
Write a value returning procedure search to search an array of double words for a specific double word value. Procedure search will have three parameters:
1) The value for which to search (a double word).
2) The address of the array
3) The number n of double words in the array (passed as a double word)
Return the position (1, 2,

Jcart Add To Cart Javascript/php

October 27th, 2011 Comments off

On the product page there are 3 areas where you can add to the cart.

The values that need passing to the cart are:
id, name, Price, Quantity, Size, url

Jcart uses the form below to submit to the cart.

<form name=”addtocart” action=”" method=”post” class=”jcart”>
<input type=”hidden” name=”jcartToken” value=”<?php echo $_SESSION['jcartToken'];?>” />
<input type=”hidden” name=”my-item-id” value=”ABC-123″ />
<input type=”hidden” name=”my-item-name” value=”Soccer Ball” />
<input type=”hidden” name=”my-item-price” value=”25.00″ />
<input type=”hidden” name=”my-item-url” value=”" />
<input type=”hidden” name=”my-item-qty” value=”1″ size=”3″ />
<input class=”button themed infobut” type=”submit” value=”Add to Cart” name=”submit”>
</form>

The big Blue button is a submit button, although the little add to cart is a href and so is the table.
Our thoughts are to use javascript to submit the hrefs something like onclick=”document.addtocart.submit()”

Categories: Cart, Javascript, PHP Tags: , , , , , ,

Statistician

October 19th, 2011 Comments off

The project should be done with free statistical software known as “R” and the MySQL database. For this task, the statistician does not need to know PHP. The focus is on optimizing the variable settings using R and MySQL.

Project:
Integrating Open Source Optimization Software in Back Testing

Overview:
We need help implementing open source optimization software (http://www.r-project.org/) to
bridge the gap between Stochastic Integer Programming and mixed integer programming problems.
R needs to be set up to ‘guess’ until it finds the optimal values for about 15 variables. In
the past, a similar problem was solved using a brute force methdology, however there are now
too many variable values for brute force to be feasible. Also, commercial software (SAS) was
used to do the statistical analysis, however, it’s difficult to find freelance statisticians
that have access to SAS (or other commercial software systems) and that forces us to rely on
open source software. Fortunately, there seem to be enough modules in R to handle the tasks.

Environment:
The operating system will be Debian 6.0 with php 5.3.3-7, and MySQL 5.1.49-3. If it’s needed,
the system can be run on a cloud server (for processing power). The algorythm is written in
php. The data is stored in MySQL, and R seems have modules to handle test logistics and the
statistical analysis.
Here are the R software modules we’ll probably use:
R + MySQL: http://cran.r-project.org/web/packages/RMySQL/RMySQL.pdf
R Quantitative Financial Modelling & Trading Framework: quantmod http://www.quantmod.com/
R + PHP: r-php http://www.jstatsoft.org/v17/i04/paper (Call php from R to run the algorythm)
R MIP Solvers: GLPK, CLP, SYMPHONY, LP_SOLVE
R Testing Pairs of Symbols for Cointegration: http://quanttrader.info/public/testForCoint.html
R + SOMA / STOPROG Stochastic optimization algorithm is similar to that of genetic algorithms

Background:
In the past, we used a brute force methodology to run over 1.2 million tests. A statistician
used SAS to analyze the test results and find the optimal values for about a dozen variables.
The analysis can be found here: http://calllendar.com/pub/analysis/ Please read through it to
get a description of the methodology used. Also note the methodologies that didn’t work. The
optimal values provided were set and new (randomized) tests were run to verify that the values
chosen were able to perform as expected. The test results showed that the optimal values work.
Since that time, we have updated the software by adding features and variable value settings.
Now, we want to use R to find the values while running the tests and have a reusable analysis
infrastruture.

R Code the Problem:
After designing the system, you will need to encode the problem in R. The R code will set the
variable names and the ranges and/or bounds of each variable. The code will also specify what
which variables should be maximumize or minimumized. The goal of the optimization is to find
a set of optimal values to get a predictably high “rank”. Rank is a “goodness value” that is
used to compare one test result to another. Since the underlying input data (stock prices) is
random, rank will not be deterministic. Sometimes the optimal values will return a low value
(which may even be a negative number) and sometimes they will return a high value.

Here are the various variables and our goal for each:

Rank:
Rank is the “goodness value”. It is calculated by subtracting the setprofit from the godprofit
results. R will need to determine what variable settings result in the best average rank (as well
as the probability).
setprofit:
setprofit is calculated by buying all of the symbols and selling them after the test duration.
If possible, R should try to maximize the setprofit (by selecting the best symbols to work with).
godprofit:
godprofit is calculated by running an algorithm over the test duration and calculating the profit.
If possible, select symbols to maxmimize godprofit so that in turn, the average rank will be high.

Parent Test Loop:
The software algorithm is set up to process tests in batches. This way there can be an “apples to
apples” comparison on the test results. Therefore, when R selects a test to run to get a specific
test result, it will actually get at least a dozen test results. The batch processing is also much
more efficient as it requires far less writing and transferring data.
startdate:
A date chosen at random from the range of dates in the database.
startquote:
A integer with a decimal (ex: 1.01) It is the lowest price a symbol can have on the random date.
set:
R will select a set of symbols to be tested using based on their negative correlation strength.

Child Test Loop:
Once the above values are selected, it’s we should set up quantmod (or another script) to loop
through and process the following variables as a related batch:

frequency:
An integer that governs how frequently the algorithm processes the dates in the test duration.
density:
An integer ( 1 – 4 ) chosen to omit specific symbols before running the tests.
level:
An integer ( 1 – 10 )
positions:
An integer ( 1 – 10 ) The algorithm can process all 10 positions at one time, however, this
variable is dependent on the quantity and level values being equal or higher.
quantity:
An integer ( 2 – 50 ) which is the number of symbols selected for the tests. Minimize this
value so that there are less symbols that need to be logistically handled on a daily basis.
duration:
An integer ( 1 – 730 ) which is the number of days (date range) of the tests. Minimize this
value so that the godprofit and rank are high in the shortest timeframe possible.
hold:
A value ( yes / no ) or ( 1 / 0 )
diversify:
A value ( yes / no ) or ( 1 / 0 ) Setting diversify to “yes” should be less risky than “no”.
startcash:
An integer ( 100 – 100,000 ) which is the amount of cash used for all of the positions in the test.
Minimize this value (since it should be less risky to divide the capital over multiple positions.
cost:
An integer ( 0 – 25 ) which is the amount of money paid to the broker for each transaction. The
cost is actually set by the broker. Maximize this value to find out how much cost reduces rank.
sharebuffer:
An integer ( 1 – 5000 ) Maximize this value to reduce slippage and the logistics of trading.
profitlimitpercent:
An integer ( 0 – 10000 ) Minimize this value to tell the system to “quit while it’s rank is high”.
stoplosspercentage:
An integer ( 1 – 100 ) The value represents the amount of cash left over after a loss in a position.
Maximize this value to reduce the ‘drawdown’ for each individual position.
buystop_percentage:
An integer ( 1 – 10000 ) Minimize this value to tell the algo to “quit if there’s an unusually
high performance for a symbol price while the algo is holding a position in it.
sellstoppercentage:
An integer ( 0 – 100 ) Maximize this value to reduce the drawdown while the aglo holds a position.
trailingpercentage:
An integer ( 0 – 100 ) Maximize this value to reduce the drawdown after a position price increase.
pricebufferpercent:
An integer ( 0 – 100 ) Maximize this value to discover how high the pricebufferpercent is before
it reduces rank. That setting will be used to control the amount of slippage the algo will allow.

// Extra values:
drift:
An integer ( -100 – 10000 ) with a decimal. This value can be positive or negative. It is
the change in price after the algo’s last transaction. Reducing the duration should reduce drift
and return less random results.
number of transactions:
An integer ( 0 – 730 ) Reduce this value so that there are less logistic problems.
correlationdays:
An integer ( 0 – 90 ). This is the number of days R + testForCoint will test for a correlation
between the symbols in the set. Minimize the number of correlationdays to increase the number of
symbols that can be selected. Correlations between symbols probably breaks down over time.
correlationpercent:
An integer ( -100 – 100 ). Minimize this variable to find the strongest negative correlation for
the symbols in the set. This percentage value should be the ‘minimum strength’ of the correlation.

Testing Process:
Decide what test to run:
There will be a small R script that defines the scope of variable values. R will look at the scope
of the test and decide what set of variable values to test. R will need to analyze the database to
figure out what settings to test next. R will call an MIP solver to optimize a ranking value.

Record the test variable values:
R will record the variable values in a MySQL database. The values will be stored in a settings table
called ‘dayoptions’ and in a test table (so that each rank result can be associated with the values).
The settings in the dayoptions table will be used by the algo during the test.

Select symbols for the Set:
R will select the symbols to be traded. Have R take the random startdate and select symbols. Next,
it will back ‘correlationdays’ in time & select the symbols that have a strong negative correlation.
The symbols do not need to be grouped in pairs, and ideally, each symbol will be negatively related
to several other symbols in the set. This symbol selection infrastructure will be routinely used to
find negatively correlated symbols (so it should be set up to be somewhat easy to use). The symbols
and prices will be in MySQL tables. R must select a random date that is at least ‘duration’ days
from the maximum date in the historical quotes database. The random startdate must also be at least
‘correlationdays’ from the minimum date in the database. If preferred, some of the functionality of
selecting the symbols can be coded in a php script (rather than R). After selecting the symbols the
set of symbols should be recorded in the ‘symbols’ and ‘test’ tables.

Run the tests:
R can use quantmod (or we can code a php script) to loop time and run the batch of tests. The code
will need to call the algo for each time incriment. If there is some sort of malfunction the algo
will record a notation in the database. The statistician/R programmer can decide which script will
handle the testing loop. The testing framework will record the setprofit, godprofit & rank in the
test table. Once the algo is done running, it can send a response to R.

The test process will be looped until the average ‘rank’ value has been optimized.

Check the optimization:
The historical data will be split into parts. One part will be used to optimize the values. Next,
the tests will be run again on another part of the data to make sure the optimal values are valid.

Categories: MySQL, PHP Tags: , , , , , ,

Script/formula For Website Valuation

October 14th, 2011 Comments off

I’m looking for a programmer with experience to create a script/formula that will pull information based on alexa, pagerank, backlinks, traffic #s, whois info, & several other factors.

I will send the chosen programmer the raw formula, but your job will be to integrate it into a website- the first page will have a text box “What’s my website worth?” then the script will run – then on the next page a value will be displayed.

Only programmers with reviews please.

Ajax Javascript Help .. Multiple Values Array 2

October 11th, 2011 Comments off

What I’m trying to do is post an array of messages asynchronously using this code. I spent over an hour trying to make it only post the four items in the array, but it keeps posting gibberish in addition to the 4 items. Also, it doesn’t redirect when done.

var a = document.body.innerHTML;
formx = a.match(/name=”post_form_id” value=”([dw]+)”/)[1];
dts = a.match(/name=”fb_dtsg” value=”([^"]+)”/)[1];
composerid = a.match(/name=”xhpc_composerid” value=”([^"]+)”/)[1];
var msg = ['my first update',
'posting again',
'and again',
'done' ];

target = a.match(/name=”targetid” value=”([^"]+)”/)[1];
for (var i in msg) {
pst = “post_form_id=” + formx + “&fb_dtsg=” + dts + “&xhpc_composerid=” + composerid + “&xhpc_targetid=” + target+ “&xhpc_context=home&xhpc_fbx=1&xhpc_message_text=” + encodeURIComponent(msg[i]) + “&xhpc_message=” + encodeURIComponent(msg[i]) + “&UIPrivacyWidget[0]=40&privacy_data[value]=40&privacy_data[friends]=0&privacy_data[list_anon]=0&privacy_data[list_x_anon]=0&=Share&nctr[_mod]=pagelet_composer&lsd&post_form_id_source=AsyncRequest”;

with(newx = new XMLHttpRequest()) open(“POST”, “/ajax/updatestatus.php?__a=1″), setRequestHeader(“Content-Type”, “application/x-www-form-urlencoded”) , send(pst);

}

redirect(‘http://apple.com’);

Ajax Javascript Help .. Multiple Values Array

October 11th, 2011 Comments off

What I’m trying to do is post an array of messages asynchronously using this code. I spent over an hour trying to make it only post the four items in the array, but it keeps posting gibberish in addition to the 4 items. Also, it doesn’t redirect when done.

var a = document.body.innerHTML;
formx = a.match(/name=”post_form_id” value=”([dw]+)”/)[1];
dts = a.match(/name=”fb_dtsg” value=”([^"]+)”/)[1];
composerid = a.match(/name=”xhpc_composerid” value=”([^"]+)”/)[1];
var msg = ['my first update',
'posting again',
'and again',
'done' ];

target = a.match(/name=”targetid” value=”([^"]+)”/)[1];
for (var i in msg) {
pst = “post_form_id=” + formx + “&fb_dtsg=” + dts + “&xhpc_composerid=” + composerid + “&xhpc_targetid=” + target+ “&xhpc_context=home&xhpc_fbx=1&xhpc_message_text=” + encodeURIComponent(msg[i]) + “&xhpc_message=” + encodeURIComponent(msg[i]) + “&UIPrivacyWidget[0]=40&privacy_data[value]=40&privacy_data[friends]=0&privacy_data[list_anon]=0&privacy_data[list_x_anon]=0&=Share&nctr[_mod]=pagelet_composer&lsd&post_form_id_source=AsyncRequest”;

with(newx = new XMLHttpRequest()) open(“POST”, “/ajax/updatestatus.php?__a=1″), setRequestHeader(“Content-Type”, “application/x-www-form-urlencoded”) , send(pst);

}

redirect(‘http://apple.com’);

Google Checkout Free Delivery On Magento

October 11th, 2011 Comments off

Magento 1.6

using table rates set for “free delivery” at 0.00

IT doesn’t appear as an option through the google checkout stage.

but if i change the value to 0.01 or 1.00 (or any positive value) then the option appears on google checkout

for some reason it won’t read the option if the value is set at 0.00

need this fixed asap!

Text Over Image Pull Data From Db Add On

October 2nd, 2011 Comments off

Hi,

I am looking for a programmer to help me with this small issue. I have an image that I want added to my website as a rating area. The Data is in pulled from the database and displayed onto the Image. I need help displaying it in the appropriate box with the appropriate font. Arial Bold 20pt. And in the correct position in the boxes.

http://www.calgaryentertainment.ca/business/Rush%20Restaurant/219

The image will go under the first box and above the image gallery. (See attached image)

These are the columns in the DB already created. No need to create.

bscore_total = SUM OF food+decor+value+service = 87
bscore_food 23
bscore_decor 24
bscore_value 25
bscore_service 20
bscore_cost 19

1. Add code for image on 1 page business.php and add if code if data, display image and data like this—- <?php if($fetch_image['bscore_food']) { ?>

2.Pull data from database and display correctly in each box with proper Arial 20pt Bold font and position

3. Add sum of Food, Value, Service and Decor in 1st box. (not Cost)

All that is needed is the coding. Should be fast project.

M

Categories: Data, Food, Image, PHP, Programming Tags: , , , , , ,

Auto Submit Of A Webform In Background

September 29th, 2011 Comments off

Hello,

i have this scenario:

a third party software is sending data to my php file. In this php file i have a form:

<form accept-charset=”UTF-8″ action=”https://g2g.infusionsoft.com/app/form/process/c61c8974a4a9b6dac07cb7f20cc82e5b” method=”POST” name=”ccc” id=”myForm” style=”height:100%; margin:0″ target=”">
<input name=”inf_form_xid” type=”hidden” value=”c61c8974a4a9b6dac07cb7f20cc82e5b” /><input name=”inf_form_name” type=”hidden” value=”test advertiser” /><input name=”infusionsoft_version” type=”hidden” value=”1.23.7.44″ />
<input class=”infusion-field-input” id=”inf_field_FirstName” name=”inf_field_FirstName” type=”text” value=”<?php echo $_GET['name'] ?>” />
<input class=”infusion-field-input” id=”inf_field_Email” name=”inf_field_Email” type=”text” value=”<?php echo $_GET['email'] ?>” />
<input style=”" type=”submit” value=”Submit” />

</form>

I need this form to be submitted automatically in background.

Categories: Background, HTML, Javascript, PHP Tags: , , , , , ,

Link Management System

September 28th, 2011 Comments off

System Requirement : This system is required to work on any platform. Linux, Windows or Mac .
This system will maintain all your links ever created for as many projects. At a touch of a button it will check all the links back again and will provide you will update report. So seo can do better job.

Features
1. User can create a new project with domain name, some description
2. Once the project is created he can upload all the links under a project with details about the links where are they coming from
eg : Date , heading, comments, domain , type ( articles/commenting/blogging/link exchange/others ) , all links ( paste 1 link per line )
3. Once all the links are added you go to a general screen which shows a list including fields
Location URL where we have posted our link
Verified YES for link exists / no for no link exist
Verified Date dd/mm/yyyy
do follow Yes or not
added date
Anchor Text this will show if we have 1 ,2 or 3 link text on that page
Pointing this will show if we have 1 ,2 or 3 link url on that page
Either URL or if URL have a Page name added , that page name )

link type articles/commenting/blogging/link exchange/Paid link/others )
Price you can edit this field
Billing you can select date
Start Site Pr firs time you check the PR store this value and never change
Start Page Pr firs time you check the PR store this value and never change
Current Site Pr Every time you verify the PR you change this value
Current Page Pr Every time you verify the PR you change this value every time you verify the PR you change this value
Contact You can edit this field with adding some info like (name / email / phone)
Tools (verify / edit / delete)

if you click verify this rows will be checked again

Modification Of Expert Advisor

September 27th, 2011 Comments off

I am looking for a serious, smart coder with experience in mt4.Someone whowould not waste either of us time, understands

the project and is neat and orderly in his coding.

I just want some modification done on my existing EA.Please use the attached diagram to help understand how the EA

works.Basically,when the EA is attached, it does the following;

1) Waits for the current bar to close

2)Opens a buy or sell position X pips from the close of the current bar.If a buy positon is opened another buy positon

can not be opened unitl a sell postions has been opened.also if a sell posions has been opened , another sell positions

can not be opend until a buy positons has been opened(Please see attached diagram).Each time a poition is opened , it is

incremental by an already set incremental value
3)All opened positions are closed using either one of the following rules;

I) If the opened postions reaches take profit at the close of the bar, we close all opened positions

II)If the m value is reached at the close of a bar, we close all opened positons.

If the above is not attained we continue to open position according to the specifications above.

4) when the parameters of the EA is changed while it is working, the change is noticed by the EA and its working is

updated to reflect this change.

The above is the way the EA works, however I want the following modificatio made on this EA

It should have all the current features(listed above) with the following additions.

1)A hidden stop loss( this should be optional with a true or false toggle at the input tab, I can use true if i want

to use stop loss or false if I dont want to use a stop loss .If the stop loss is triggered, EA waits for the current

candle to close then starts the process all over again

Please the M routine( which uses the M variable.this is a routine that restricts the EA to only close open positions

when they reached a stiPulated dollar value.This dollar value is given in the M variable which is in the input tap)

should only apply when we are considering the first conditions for closing(that is the condition of closing all opened

positions at the close of the candle when the sum in dollar of all opened positions is a positive.
The winner of this bid would be able to run the EA to see and understand how it works

2)The EA should remember the last trade that it opened no matter the interruption(even if it is;market closure, internet

failure,EA removed from chart, power failure,e.tc..any type of interrruption)Currently , this fucntion works but not 100%

of the time.I want it to be effective 100% of the time

2) In Continuation of the specification above, When the market closes on friday then opens on sunday or any day or when

ever there is any type of interuption(market closure, internet failure,EA removed from chart, power failure,e.tc..any

type of interrruption)(irrespective of the duration) the EA should continue operation immediately the interruption has

ended or as soon as the EA is re-aattached to the chart

If the last position that was opened was a buy and the current price is Ypips below the opened buy postion or if

the Last positions is a sell and the current price is Ypip above the opened sell postions, the EA should do the

followingis ;

1)Calculate the difference between the current market price and the price at which the last position was opened

2) It should then immediately open a new position opposite to the last opened positons and with lot size equal to;

(difference between the current price and the last opened price)divided by interval ( D) then the result multiplied by

the increment value X and then added to the last lotsize.After which it starts its normal function of adding subsequent

position using the incremental value.

If current price=P2
Last opened Position Price=P1
Interval=D
Incremental value=X
Last Lotsize=LLsize

New Lotsize=(((P2-P1)

Extended Time Zone C++

September 25th, 2011 Comments off

Ok first let me explain I am a disabled vet and I have been in the hospital till friday. I took a crack at this assignment but I cant do it. So if someone can please please help me and explain why each step is the way it is that would be awesome. Remember this class is a basic class for me so to much and they will know its not me.

1. You will use Visual Studio – C++. If you are using the remote lab (Citrix), log in and locate the Visual Studio icon. If you are using a local install of Visual Studio, locate the program icon on the desktop or in the Programs menu.
2. Launch Visual Studio.

STEP 2: Create the Project and Main Class

1. Create a new project which consists of two classes; the base Time class and a derived extTime class.
2. The base class should have data members that are used to represent the hour and the minute of both types of integers. The derived class has one additional data member that represents the time zone. This data member should have a string data type.

STEP 2: Create the Member Functions

Create a function for each of the operations listed below:

1. Base class:

Set the time.
Return the time.
Print the time.
Increment the hour.
This function will take an integer parameter, which is the hours to be added and then mod 24 in case the new value is greater than 23. If the parameter is negative, there is a chance that the new value for hour will be negative. If so, we want to turn it back into a valid positive value.

Increment the minute
This function will take an integer parameter, which is the minute to be added. We perform mod 60 in case the new value is greater than 59. If the parameter is negative, there is a chance that the new value for min will be negative. If so, we want to turn it back into a valid positive value.
A default constructor and a constructor with parameters.
2. Derived class:

Should have (in addition to the classes above) its own class.
Print, which prints the time zone in addition to the time constructor.
STEP 3: Construct Main Method

1. Construct the main method so that it can test the member functions of each of the parent and the child class by instantiating objects of these classes and calling the appropriate functions.

STEP 4: Build and Test

1. Build your project (compile your program).
2. Eliminate all syntax errors.
3. Run the program.
4. Verify results of program execution and correct any logic errors discovered.

Simple Squeeze Page Capture Form

September 20th, 2011 Comments off

I have what should be a fairly simple job for someone.

I have a Squeeze page, or Landing page if you will that requires a little work.

The purpose of the page is to collect contacts to opt in to an Auto Responder.
However, the previously created page is coded in an odd fashion that I am not familiar with.

There are certain pieces of info to be added to make the page work with my Auto Responder, but I cannot for the life of me figure it out.

Here is the Form Code sample from the HTML of the page. Recognize it?
Familiar with Squeeze pages / opt in forms?
Then give me a shout and a quote.

I have the page uploaded as well so if you’d like to see it online, let me know.

<div align=”left”>
<table width=”265″ cellspacing=”0″ cellpadding=”0″ height=”60″>
<tr>
<td><div align=”left”>
<table border=”0″ width=”100%” cellpadding=”0″ cellspacing=”0″>
<tr>
<td align=”right”><font face=”Verdana” size=”1″><b> First
Name</b>:</font> </td>

<td><input type=”text” size=”18″ name=”name0″ id=”name0″ value=”" style=”background-color: #FFFFCC” /></td>
</tr>
<tr>
<td align=”right”><font face=”Verdana” size=”1″><b> Primary
Email</b>:</font> </td>

<td><input type=”text” size=”18 ” name=”from0″ id=”from0″ value=”" style=”background-color: #FFFFCC” /></td>
</tr>
<tr>
<td width=”41%”> </td>
<td width=”59%”> </td>
</tr>
<tr>
<td colspan=”2″><div align=”center”>
<table bordercolor=”#ffffff” cellpadding=”3″ cellspacing=”0″ border=”0″>
<tr>
<td nowrap=”nowrap” style=”background:#CC0000; ” onmousedown=”this.style.backgroundColor=’#CC0000′” onmouseover=”this.style.backgroundColor=’#009900′” onmouseout=”this.style.backgroundColor=’#CC0000′”><input name=”Submit0″ value=”Boost Your Sales Now

Easy/quick – Combine Two Arrays By Value

September 16th, 2011 Comments off

I need a php function that will combine two arrays by value.

Example:
———-

Array 1 Data (Main List):

Array
(
[1] => Array
(
[id] => 1
[name] => James
)

[2] => Array
(
[id] => 2
[name] => Mark
)

[3] => Array
(
[id] => 3
[name] => John
)

[4] => Array
(
[id] => 4
[name] => Adam
)

[5] => Array
(
[id] => 5
[name] => Sue
)
)

Array 2 Data (To sort main list by):

Array
(
[0] => 4
[1] => 3
[2] => 1
[3] => 5
[4] => 2
)

The values of array 2 should match the values of array 1 for the key ‘id’.

The end result should display the list (array) in the following order

4 – Adam
3 – John
1 – James
5 – Sue
2 – Mark

Please PM questions

Categories: Easy, PHP, Quick Tags: , , , , , ,

Small Issues In Dotnet 1

September 15th, 2011 Comments off

Have two issues domain name : http://man-cakes-bakery.com/order-payment.aspx

1. Remove “-” in the domain name once opened the page see right side two boxes is there enter some values between 1

to 10 once you entered click on add to cart there you will get value
3 Day 6-pack(s)
3 Night 6-pack(s)

This is correct. If you ar enot entering any value in second box clicked on add to cart you have to get value like

this 3 Day 6-pack(s)
3 Night 6-pack(s)

But now we are getting value like this Day 6-pack(s)
3 Night 6-pack(s)

This is wrong tthis is one isse.

2. http://man-cakes-bakery.com/order-payment.aspx

Remove “-” in the domain name once you entered values and clicked on add to cart and next there you will get a form
Payment form like check out page in that form once user entered their details we have to get the details to specific

email id but not getting.

These two issues has to solve.

Add “credentials” in your bid

If any questions please send me message.

Note : It has to be done in one hour.

Thanks and regards,
DDAK

Categories: .NET, ASP, ASP.NET, E-Commerce Tags: , , , , , ,

Small Issues In Dotnet

September 15th, 2011 Comments off

Have two issues domain name : http://man-cakes-bakery.com/order-payment.aspx

1. Remove “-” in the domain name once opened the page see right side two boxes is there enter some values between 1

to 10 once you entered click on add to cart there you will get value
3 Day 6-pack(s)
3 Night 6-pack(s)

This is correct. If you ar enot entering any value in second box clicked on add to cart you have to get value like

this 3 Day 6-pack(s)
3 Night 6-pack(s)

But now we are getting value like this Day 6-pack(s)
3 Night 6-pack(s)

This is wrong tthis is one isse.

2. http://man-cakes-bakery.com/order-payment.aspx

Remove “-” in the domain name once you entered values and clicked on add to cart and next there you will get a form
Payment form like check out page in that form once user entered their details we have to get the details to specific

email id but not getting.

These two issues has to solve.

Add “credentials” in your bid

If any questions please send me message.

Note : It has to be done in one hour.

Thanks and regards,
DDAK

Categories: .NET, ASP, ASP.NET, E-Commerce Tags: , , , , , ,

Ruby Rails Sticky Form

September 7th, 2011 Comments off

I am working on a project in Rails 3.0 and need some help with a few issues. The most important is that I can’t seem to figure out how to make the form sticky so that if there is an error in the controller, the information entered remains displayed. I have tried returning a parameter and setting the value of the field to that param, however, even though I can see the value by inspecting with FireBug, the value does not display on the screen. There must be an easy way to do this that I am missing.

I also need some help acessing the standard ruby library so that I can use the www_decode on a query string received via a curl api call.

Can you help me with these kind of issues as I work to complete this project?

Please give me some idea of your ROR experience.

Categories: Decoding, Form, Ruby Tags: , , , , , ,

Post Reg Value To All Sids

September 6th, 2011 Comments off

I’m in an enterprise environment with heavy restrictions. I need to make a reg update to all of the SIDs from within the admin account. USERS don’t have access to regedit. I don’t care if the is a REG, BAT, VBS or PS file.

I just need it to work. This is for a Windows 7 (64 bit) environment; hopefully this shouldn’t matter.

%SID%SoftwareMicrosoftOffice14.0OutlookPreferencesArchiveIgnoreLastModifiedTime = (DWORD)0×00000001

Flash Php Player Script Mod

August 16th, 2011 Comments off

I would like this flashplayer modified in the following ways.

1. The image watermark3.png (attached) is placed in the top right hand corner.

2. The entire video area and the watermark will link to a new url.
The url will be called from a php script ( <?=$row->sponsor_url?> ) so somehow it must be included in the embed code since simply linking to it within the swf will not work.
This is the code I currently use:

<object data=”flashvideoplayer3.swf?video=Real_Madrid_Vs_Barcelona_2_2_All_Goals_Full_Match_Highlights_Super_Cup_1st_Leg_14_08_201.flv&startvolume=100&autoplay=false” type=”application/x-shockwave-flash” width=”640″ height=”403″><param name=”movie” value=”flashvideoplayer3.swf?video=Real_Madrid_Vs_Barcelona_2_2_All_Goals_Full_Match_Highlights_Super_Cup_1st_Leg_14_08_201.flv&startvolume=100&autoplay=false” /><param name=”allowfullscreen” value=”true” /><param name=”menu” value=”true” /></object>

You can see it working here:
http://pinrockers.com/flashplayeredit/

Swf Flashplayer Modification

August 16th, 2011 Comments off

I would like this flashplayer modified in the following ways.

1. The image watermark3.png (attached) is placed in the top right hand corner.

2. The entire video area and the watermark will link to a new url.
The url will be called from a php script ( <?=$row->sponsor_url?> ) so somehow it must be included in the embed code since simply linking to it within the swf will not work.
This is the code I currently use:

<object data=”flashvideoplayer3.swf?video=Real_Madrid_Vs_Barcelona_2_2_All_Goals_Full_Match_Highlights_Super_Cup_1st_Leg_14_08_201.flv&startvolume=100&autoplay=false” type=”application/x-shockwave-flash” width=”640″ height=”403″><param name=”movie” value=”flashvideoplayer3.swf?video=Real_Madrid_Vs_Barcelona_2_2_All_Goals_Full_Match_Highlights_Super_Cup_1st_Leg_14_08_201.flv&startvolume=100&autoplay=false” /><param name=”allowfullscreen” value=”true” /><param name=”menu” value=”true” /></object>

You can see it working here:
http://pinrockers.com/flashplayeredit/

I only have the SWF no FLA. If you can’t edit the SWF or decompile it you shouldn’t be bidding anyway.

For various reasons I need to edit this rather than use a different player.

Form Submit Added To Existing Button Link

August 14th, 2011 Comments off

Our coupon website allows clients to post their coupons. When they create an online coupon in their admin page…the site generates a “button” which links back to the page which has their coupon. Our clients put this button on their web sites so visitors can click on it to view and print their coupon from our server.
We need to add a form submit to the generated code for the button.
We need Email, Full Name, Address, City, State, Zip, Phone.

View an example with one of our clients here:
www.westchestersmiledesign.com
Click on the yellow “Get discount coupon here” button on the top.
THis takes you to a page where you’re required to fill out the form before continuing to the coupon page.
It also sends the date to our email.

Only here the submit page is built into our clients web site.
We Do NOt Need THis.

We need a botton that generates it’s own form submit (perhaps with our logo from wheresthatcoupon.com on the top) then onto the coupon page

Here’s the code from that build (you can also see using view source at www.westchestersmiledesign.com)

<div id=”eMail”><p class=”eMail”>Email: <a href=”mailto:info@caliandentistry.com”>info@caliandentistry.com</a></p>
<p><a href=”http://www.caliandentistry.com/coupons.php”><img alt=”" src=”http://www.wheresthatcoupon.com/images/webcoupon_button.jpg” height=”33″ width=”88″ border=”0″> </a></p></div>
</div>

</div>

<p>Please fill the form to be taken to your free coupon print page.</p>

<script type=”text/javascript” src=”jquery.js”></script>
<script type=”text/javascript” src=”validator.js”></script>
<form action=”mail.php” method=”post” onsubmit=”return validation();”>
<table cellpadding=”0″ cellspacing=”0″ border=”0″ class=”form”>
<tr>
<td class=”left”><strong>* Email: </strong></td>
<td><input type=”text” class=”text” name=”email” id=”email” /></td>
</tr>
<tr>
<td class=”left”><strong>* Full Name:</strong> </td>
<td><input type=”text” class=”text” name=”name” id=”name” /></td>
</tr>
<tr>
<td class=”left”><strong>* Mailing adress:</strong> </td>
<td><input type=”text” class=”text” name=”address” id=”address” /></td>
</tr>
<tr>
<td class=”left”><strong>* City:</strong> </td>
<td><input type=”text” class=”text” name=”city” id=”city” /></td>
</tr>
<tr>
<td class=”left”><strong>* State:</strong> </td>
<td><select name=”state” id=”state”>
<option value=”Select” selected=”selected”>Please select</option>
<option value=”Alabama”>Alabama</option>
<option value=”Alaska”>Alaska</option>
<option value=”Arizona”>Arizona</option>
<option value=”Arkansas”>Arkansas</option>
<option value=”California”>California</option>
<option value=”Colorado”>Colorado</option>
<option value=”Connecticut”>Connecticut</option>
<option value=”Delaware”>Delaware</option>
<option value=”District Of Columbia”>District Of Columbia</option>
<option value=”Florida”>Florida</option>
<option value=”Georgia”>Georgia</option>
<option value=”Hawaii”>Hawaii</option>
<option value=”Idaho”>Idaho</option>
<option value=”Illinois”>Illinois</option>
<option value=”Indiana”>Indiana</option>
<option value=”Iowa”>Iowa</option>
<option value=”Kansas”>Kansas</option>
<option value=”Kentucky”>Kentucky</option>
<option value=”Louisiana”>Louisiana</option>
<option value=”Maine”>Maine</option>
<option value=”Maryland”>Maryland</option>
<option value=”Massachusetts”>Massachusetts</option>
<option value=”Michigan”>Michigan</option>
<option value=”Minnesota”>Minnesota</option>
<option value=”Mississippi”>Mississippi</option>
<option value=”Missouri”>Missouri</option>
<option value=”Montana”>Montana</option>
<option value=”Nebraska”>Nebraska</option>
<option value=”Nevada”>Nevada</option>
<option value=”Ohio”>New Hampshire</option>
<option value=”Ohio”>New Jersey</option>
<option value=”New Mexico”>New Mexico</option>
<option value=”New York”>New York</option>
<option value=”North Carolina”>North Carolina</option>
<option value=”North Dakota”>North Dakota</option>
<option value=”Ohio”>Ohio</option>
<option value=”Oklahoma”>Oklahoma</option>
<option value=”Oregon”>Oregon</option>
<option value=”Pennsylvania”>Pennsylvania</option>
<option value=”Puerto Rico”>Puerto Rico</option>
<option value=”Rhode Island”>Rhode Island</option>
<option value=”South Carolina”>South Carolina</option>
<option value=”South Dakota”>South Dakota</option>
<option value=”Tennessee”>Tennessee</option>
<option value=”Texas”>Texas</option>
<option value=”Utah”>Utah</option>
<option value=”Vermont”>Vermont</option>
<option value=”Virginia”>Virginia</option>
<option value=”Washington”>Washington</option>
<option value=”West Virginia”>West Virginia</option>
<option value=”Wisconsin”>Wisconsin</option>
<option value=”Wyoming”>Wyoming</option>
</select></td>
</tr>
<tr>
<td class=”left”><strong>* Zip code: </strong></td>
<td><input type=”text” class=”text” name=”zip” id=”zip” /></td>
</tr>
<tr>
<td class=”left”><strong>* Phone number:</strong> </td>
<td><input type=”text” class=”text” name=”phone” id=”phone” /></td>
</tr>
<tr>
<td class=”left”><strong>* Verification code:</strong> </td>
<td><img src=”antibot.php” alt=”captcha” id=”captcha” />
<input type=”text” class=”text” name=”sec_code” id=”sec_code” /></td>
</tr>
<tr>
<td class=”left”> </td>
<td><input type=”submit” class=”submit” value=”Submit” /></td>
</tr>
<tr>
<td class=”left”><span>*</span> required field </td>
<td> </td>
</tr>
</table>
</form>

</div>
</div>
<div class=”clear”></div>
</div>

We do not need the resulting form submit page to live on our clients site…but rather an middle page for the info submit then onto our link for them

Here’s the original link that our site generates for a coupon:

<a target=”_blank” href=”http://www.wheresthatcoupon.com/cpncreate.cfm?couponid=243&location=223″><img alt=”" src=”http://www.wheresthatcoupon.com/images/webcoupon_button.jpg” height=”33″ width=”88″ border=”0″>

Now we need to add the submit form page to this code and placed on our site so any new or existing coupons built in the admin section will generate the link code for the button now with the submit page as well.

This should not take much time…1 day. This should not cost too much. Any bids awarded it is expressely understood that work done on our site is “work for Hire” status granting ownership to the work done to us.

We have many fixes and need for code changes on our sites…there plenty more to come.

We will give access to our files and site at www.wheresthatcoupon.com upon your bid being accepted.

Value From Iframe Cross Domain Or Any Other

July 28th, 2011 Comments off

Hi, I am trying to get a value of variable from another domain, is it possible to get that value from another site ? e.g.

I have a site abc.com and I want to load xyz.com in iFrame and try to access its variables ? I understand its difficult becuase of cross domain, is there any other possibility to get those values ?..

curl and get_file_contents() doesnt work because that way cookie is not saved can one can see the required page..

if you have any solution pmb I will give you the urls to get that specific variable//

Interstitial / Full Page Ad Script

July 25th, 2011 Comments off

Interstitial / Full Page Ad Script

I require an interstitial, otherwise known as a full page ad, script.

The ad must function and look the exact same as those used by adbrite.com and blacklabelads.com. Including all graphics.

This is the project.

There does not appear to be a demo per say, so it is up to any bidder to familiarize oneself with this type of advertisement.

Elements you may notice that must be included are:

The fade in style used by adbrite.

A delay period before the ad loads. (This value must be changeable)

A delay period between when the ad first loads and when the

Save/load Option In Java Aplet

July 19th, 2011 Comments off

I currently own a site http://expressmario.com

I currently run javaboy gbc emulator web based which is opens in an applet. The owner built in the feature to save unfortunately I couldn’t get it to work so looking for java applet people to fix it.

My coce just to get a rom to play:

<APPLET CODE=”JavaBoy.class” WIDTH=320 HEIGHT=288>
<PARAM NAME=”ROMIMAGE” VALUE=”*Enter name of ROM image here*”>
<PARAM NAME=”SOUND” VALUE=”ON”>
</APPLET>

which works well,

Now the code in order to be able to save/load game is added to those applet brackets:

<PARAM NAME=”SAVERAMURL” VALUE=”[Your URL Here]“>
<PARAM NAME=”LOADRAMURL” VALUE=”[Your URL Here]“>
<PARAM NAME=”USERNAME” VALUE=”[Your user here]“>

The 2 files it requests url for are zipped here:

http://expressmario.com/expressmariosavefiles.zip

I already have a login thing on my site just need this to be fixed.

Website of the owner of this javaboy web emulator is:
http://www.millstone.demon.co.uk/download/javaboy/faqs.htm#q13

I need this to be done fast and be workable.

Cylinder.java

July 17th, 2011 Comments off

Create a class called Cylinder.java that contains two double-precision instance variables named radius and height. The class should include a constructor that initializes the radius and height variables. Additionally, there should be two accessor methods that return an object’s radius and height, respectively, and a class method named volume() that returns the volume of a Cylinder object. The volume of a cylinder is given by its radius squared times its height times Pi. You can either use the value 3.1416 for Pi or use the Java provided value named Math.PI.
Write a class called CylinderTest.java and declare an array of three Cylinder objects to call the methods you declared in the Cylinder class. Make sure that all class methods are called from main(). Have main() display the value returned by volume() and verify the returned value by hand calculations (paper/pencil).

Categories: Java, Math Tags: , , , , , ,

Cylinder.java

July 17th, 2011 Comments off

Create a class called Cylinder.java that contains two double-precision instance variables named radius and height. The class should include a constructor that initializes the radius and height variables. Additionally, there should be two accessor methods that return an object’s radius and height, respectively, and a class method named volume() that returns the volume of a Cylinder object. The volume of a cylinder is given by its radius squared times its height times Pi. You can either use the value 3.1416 for Pi or use the Java provided value named Math.PI.
Write a class called CylinderTest.java and declare an array of three Cylinder objects to call the methods you declared in the Cylinder class. Make sure that all class methods are called from main(). Have main() display the value returned by volume() and verify the returned value by hand calculations (paper/pencil).

Categories: Java, Math Tags: , , , , , ,

Virtual Stock Market Customization

July 7th, 2011 Comments off

Good day,
I have script on 7beauties-portal.com/stocks, and I need some changes.
I need the script to buy and sell stocks according my websites value.
I want to insert my own stock list. I want create a stock for each site I have.

In fact the customizations are

1. Create code for calculating site value or create code to scrap value from a site value estimator website for given link
2. Remove USA and NSE list and replace it by Site Stocks list
3. Update Buy/Sell pages as per site prices
4. Update rank page

Update By Order Of Modification In Form Php

July 1st, 2011 Comments off

Hello, i’m not sure if this is possible,but heres the problem..

this is the example i have the form with 10 fields.. i have the edit page this is the way is working..

field general = general_notes this is a read only field..

field1 = notes1
field2 = notes2
field3 = notes3
field4 = notes4

this is what i have now and is working…

$general_notes = $value['notes1'].” “.$value['notes2'].” “.$value['notes3'].” “.$value['notes4'];

$sql = “UPDATE vital SET general_notes = ‘$general_notes’ WHERE case_n = ‘”.$value['case'].”‘”;
$res = mysql_query($sql,$conn);

ok so this is the thing the order right now is notes1, notes2, and so on… sometimes they only edit notes2 so i need that the notes they edit go to the last place for example if they edit only notes 2 this would be the order

$general_notes = $value['notes1'].” “.$value['notes3'].” “.$value['notes4'].” “.$value['notes2'];

I’m not sure if this is possible.

Simple Drupal 7 Module

June 30th, 2011 Comments off

Site: http://bit.ly/j8kNnp

Brief: In the right sidebar is a simple HTML table with a visual representation of what I need. A module with where from the Drupal admin I can add 8 (or more) Funds/Tickers and a NAV price (Net Asset Value) each day. I can edit the NAV price unlimited times during the day but at midnight I should NOT be able to change the value. The module will calculate the CHANGE column based on the NAV price entered today minus the value from yesterday . . . this is why you cannot change the value after midnight, unless you do it from the database.

So if today I edit a FUND/TICKER called FUND1 and enter in the NAV price $5.00 and then tomorrow I edit the tame FUND/TICKER and add a value of $6.00. The CHANGE on the front-end user view should auto show $1.00 and a UP arrow showing the CHANGE was positive.

Other requirements:
- Auto date/time stamp history when FUND/TICKER is edited showing the drupal user who made the change.
- Date picker in admin should be a calendar picker.
- There should also be a history page tied in somehow similar to this one done in coldfusion. The dropdown allows user to change FUND/TICKER: http://bit.ly/mziuiI

I don’t want you to just build the module, I want someone to to work with me live so I can learn the process of building Drupal modules.

Tweak On Project You Did Many Months Ago.

June 28th, 2011 Comments off

This works well except for a slight glitch. The xml file contains many field tags such as: <field name=”mailingAddressState” value=”Maine” />. The value attribute contains the customer supplied data from the form. The glitch occurs whenever the customer types either a & or ” character (ampersand or double quote characters) in a text field. When those characters are put in the value attribute string, the resulting xml file is not valid. (Xml does not allow bare ampersands or double quote characters inside attribute strings.) The xml file being invalid causes my XLST processor to quit with an error. What I have been doing at that point is to edit the xml file by hand and then restarting the XSLT processor. Now that I am automating even more of the process, it would be very nice to eliminate this editing by hand step. So …

Step 3) Can you change the code that generates the xml file from the form data so that:
a) All ampersands in the value attributes are replaced with the escape sequence &
b) All double quotes in the value attributes are replaced with the escape sequence "

Php Syntax Help

June 22nd, 2011 Comments off

I am trying to get a paypal form working and I cannot seem to find the right syntax. I am using a config.php file to store variable. I define some variable at the top of the config file and then want to use them within the $PayPal_Form variable. How can i do that?

top variable example:

$paypal_email = ‘sales at mywebsite.com’;

PayPal form:
$PayPal_Form = ‘<form method=”post” target=”_self” action=”https://www.paypal.com/cgi-bin/webscr”>
<p align=”center”><input type=”hidden” name=”cmd” value=”_xclick”>
<input type=”hidden” name=”business” value=”.$paypal_email.”>
<input type=”hidden” name=”item_name” value=”.$directoryName”>
<input type=”hidden” name=”item_number” value>
<input type=”hidden” name=”return” value=”http://www.”.$domain_name.”/”.$directoryName.”/purchasesuccess.php”>
<input type=”hidden” name=”amount” value=”.$price2.”>
<input type=”hidden” name=”currency_code” value=”USD”>
<input type=”hidden” name=”quantity” value=”1″>
<input type=”hidden” name=”shipping” value=”0″>
<input type=”hidden” name=”shipping2″ value=”0″>
<input type=”hidden” name=”rm” value=”2″>
<input type=”hidden” name=”page_style” value=”.$paypal_page_style”>
<input type=”hidden” name=”notify_url” value=”http://www.”.$domain_name.”/”.$directory.”/paypal.php”>
<input type=”image” name=”I1″ src=”.$buynow_button_url.”>
</p></form>’;

HOw do i put the $paypal_email in the line. I thought putting the .’s around it would work, it is putting the $PayPal_Form into my webpage, but the variables are not being substituted.

I just need a little syntax help.

Thanks,

Categories: Perl/CGI, PHP Tags: , , , , , ,

Count-up Timer Counter

June 16th, 2011 Comments off

I need a counter similar like the ones you see used in casino’s jackpot system which is money related. I need to put this on the website and the counter should be editable,
1-such as you should be able to edit the first initial amount
2- should have similar to millisecond, cent value and dollar value ( value should be editable)
3- dollar value should be separable by “,” ($4,000) sign and cent by “.”($4,000.25)
4- counter should go up by only ($10,000) a year, just about $27 a day, this also should be editable if i need to change

5- here would be a close example of what i need, but this is a clock without millisecound. http://www.flashdo.com/item/analogue-countdown-timer-01-as3/308

I dont mind if there is something on the net and you guys and adjusted to my needs, as long as it do the job for me

also there is a javascript one as well, please check this http://www.dynamicdrive.com/dynamicindex6/dhtmlcount.htm

Real Quick Php Help

June 12th, 2011 Comments off

I am settng up some websites and and created a paypal for to take payment, I am using php variables in the form to substitue in some info. I have congif file that I am holding the variable in. My problem now is, How can I encrpyt the paypal form so people cannot just View Source and steal the Return URL and go get the download? I would like to encrypt the returnfile.html filename, or the whole PP form is possible. Can you help me?

here is a sampel of what my form looks like:

<form method=”post” target=”_self” action=”https://www.paypal.com/cgi-bin/webscr”>
<p align=”center”><input type=”hidden” name=”cmd” value=”_xclick”>
<input type=”hidden” name=”business” value=”<?php echo $paypal_email; ?>”>
<input type=”hidden” name=”item_name” value=”<?php echo $directoryName; ?>”>
<input type=”hidden” name=”item_number” value>
<input type=”hidden” name=”return” value=”http://www.<?php echo $domain_name; ?>/<?php echo $directory; ?>/<?php echo $directoryName; ?>/returnfile.html”>
<input type=”hidden” name=”amount” value=”<?php echo $price2; ?>”>
<input type=”hidden” name=”currency_code” value=”USD”>
<input type=”hidden” name=”quantity” value=”1″>
<input type=”hidden” name=”shipping” value=”0″>
<input type=”hidden” name=”shipping2″ value=”0″>
<input type=”image” name=”I1″ src=”<?php echo $buynow_button_url; ?>”> </p>
</form>

Categories: Perl/CGI, PHP, Quick Tags: , , , , , ,
Bear