Log in

View Full Version : user's simple entry onto a webpage?



HWL
06-16-2010, 02:42 AM
What I want to do is for a webpage - for a client to securely post a number (in this case a current price) into a page on their website.
In this case my client for whom I host a domain wants to be able to easily post a price daily for a commodity of theirs. FTP and HTML is beyond them and I havent found a tiny CMS method to do something this small (yet). Present alternative is an email blast.
Ideas? Thank you.

azoomer
06-16-2010, 03:20 AM
I think publishing in Wordpress could be easy to learn for your client

HWL
06-16-2010, 03:46 AM
too much fluff unfortunately. A maybe for now
Thanks

bluewalrus
06-16-2010, 04:02 AM
You can do this with PHP you don't need any special script particularly...


Can you post some sample html of how you'd want to use it and I'll make a sample php coding?

HWL
06-16-2010, 04:15 AM
On the page http://www.goldbuyinggirl.com/enterGBG.htm (or a new php page), I just need the client to enter an amount daily, like $100, into a "space" on the page, so her clients can se it.

bluewalrus
06-16-2010, 03:54 PM
I haven't tested this so let me know if there's any error or any questions.

To update the price the user should load

http://domain.com/?price=anythingcanbehere



<?php
if (isset($_POST['access']) && $_POST['access'] = "password") {
//this assumes the users password is password for access. You can also hash this with md5 if you want or some other method of your choosing
if (isset($_POST['new_price']) && $_POST['new_price'] !="") {
$price = $_POST['new_price'];
$current_price = "price.txt";
file_put_contents($current_price, $price);
}
}
if (isset($_GET['price']) && $_GET['price'] !="") {
?>
<form action="<?php echo $_SERVER['PHP_SELF'];?>" method="post">
Input the New Price to be displayed:<input type="text" name="new_price" /><br />
Input your Password:<input type="password" name="access" />
</form>
<?php
} else {
$current_price = "price.txt";
$price_is = file_get_contents($current_price);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<style type="text/css">
#price {
/*style price however you want here*/
}
</style>
<title>Contact The Gold Buying Girl For A Gold Party or To Sell Gold</title>
<meta name="ROBOTS" content="INDEX,FOLLOW">
<meta name="description" content="Gold Buying Girl, Host a gold party in Houston, gold buyer, mailing gold, gold parties in Houston, TX">
<meta name="keywords" content="Gold Buying Girl, gold buyer in houston, host a gold party, mailing gold, gold parties in Houston, TX">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">

<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>
<body background="images/background60.jpg" topmargin="0" link="#FFFFFF" vlink="#FFFFFF" alink="#000000">

<div align="center">
<table border="0" width="1053" cellspacing="0" cellpadding="0" id="table2">
<tr>
<td width="211" rowspan="2">
<img border="0" src="images/gold-buying-girl-home.png" width="221" height="255" alt="Gold Buyer in Houston"></td>
<td width="832">
<img border="0" src="images/gold-party-purse.jpg" width="594" height="204" align="right" alt="Gold Buyer and Gold Parties"></td>
</tr>

<tr>
<td align="right" width="832">
<p align="center">
<a href="index.html"><img border="0" src="/images/button-home.png" width="185" height="51" alt="Houston Gold Parties"></a>
<a href="about_gold_buying_girl.html"><img border="0" src="images/button-host-a-gold-party.png" width="192" height="51" alt="Host A Gold Party"></a>
<a href="faq.html"><img border="0" src="images/button-faq.png" width="181" height="51"></a>
<a href="contact_gold_buying_girl.html"><img border="0" src="images/button-contact.png" width="192" height="51"></a>
<a href="gold-party-testimonials.html"><img border="0" src="images/button-testimonials.png" width="192" height="51"></a>
<a href="contact_gold_buying_girl.html"><img border="0" src="images/button-appointment.png" width="240" height="51">

</a>
<a href="welcome.htm"> </a><a href="contact_gold_buying_girl.html"><img border="0" src="images/charity.png" width="192" height="51"></a>
<a href="become_a_gold_buyer.html"><img border="0" src="images/button-gbg.png" width="192" height="51"></a>
</td>
</tr>
</table>
</div>
<div align="center">
<table border="0" width="1050" cellspacing="0" cellpadding="0" id="table1">

<tr>
<td valign="top" rowspan="3" width="246">
</td>
<td valign="top" rowspan="3" width="30">&nbsp;
</td>
</tr>
<tr>
<td align="left" width="768">
&nbsp;

<p>&nbsp;
</td>
</tr>
<tr>
<td align="center" width="768" valign="middle" >
<b>
<font color="#FFFFFF" size="3" face="Georgia"><a href="http://www.cabida.com/gbgcal/cks.php" target="_blank"><i>View
the Calendar</i></a></font>
<i><font color="#FFFFFF" face="Georgia" size="2"> (opens
in a new tab or window)</font></i></b><br><br>

<p><i><b><a href="calendarupdateform.htm"><font face="Georgia" color="#FFFFFF" size="3">Send a Calendar
Update to the Gold Buying Girl</font></a></b></i></p>
<p><b><font color="#FFFFFF" size="3" face="Georgia"><a href="http://www.cabida.com/gbgcal/calen.php"><br>
<i>Maintain the Calendar</i></a><i> </i></font>
<i><font color="#FFFFFF" face="Georgia" size="2">(requires
a password)</font></i></b>
</td>
</tr>
<tr>

<td valign="top" width="246">
I have not idea where you want the price to show up but ummmm here? <div id="price"><?php echo $price_is; ?></div>
</td>
<td valign="top" width="30">
</td>
<td align="center" width="768">



</td>
</tr>
</table>
</div>
<p align="center">

&nbsp;</p>
<script type="text/javascript">
<!--
swfobject.registerObject("FlashID");
//-->
</script>
</body>
</html>
<?php
}
?>

HWL
06-16-2010, 04:27 PM
thanks....
I created a page on the domain from your code called price.php, which is now chmod'ed to 764.
When I go to ../?price=100 and enter, I get no password challenge and it puts me back to the home page, and when I go back to price.php I see no changes.

Advice?
Thank you

bluewalrus
06-16-2010, 04:30 PM
Oh yea forgot to mention you'll need to make a price.txt with permissions of... 600 i think.

Can you post a link, not sure from your description what is happening?

HWL
06-16-2010, 06:47 PM
http://www.goldbuyinggirl.com/price.php
the php page has permissions of 764
the price.txt file is 600
the files are all in the same folder

thanks

bluewalrus
06-16-2010, 06:56 PM
opps I forgot the submit button on the form there. This code is the same with the submit button


<?php
if (isset($_POST['access']) && $_POST['access'] = "password") {
//this assumes the users password is password for access. You can also hash this with md5 if you want or some other method of your choosing
if (isset($_POST['new_price']) && $_POST['new_price'] !="") {
$price = $_POST['new_price'];
$current_price = "price.txt";
file_put_contents($current_price, $price);
}
}
if (isset($_GET['price']) && $_GET['price'] !="") {
?>
<form action="<?php echo $_SERVER['PHP_SELF'];?>" method="post">
Input the New Price to be displayed:<input type="text" name="new_price" /><br />
Input your Password:<input type="password" name="access" /><br />
<input type="submit" />
</form>
<?php
} else {
$current_price = "price.txt";
$price_is = file_get_contents($current_price);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<style type="text/css">
#price {
/*style price however you want here*/
}
</style>
<title>Contact The Gold Buying Girl For A Gold Party or To Sell Gold</title>
<meta name="ROBOTS" content="INDEX,FOLLOW">
<meta name="description" content="Gold Buying Girl, Host a gold party in Houston, gold buyer, mailing gold, gold parties in Houston, TX">
<meta name="keywords" content="Gold Buying Girl, gold buyer in houston, host a gold party, mailing gold, gold parties in Houston, TX">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">

<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>
<body background="images/background60.jpg" topmargin="0" link="#FFFFFF" vlink="#FFFFFF" alink="#000000">

<div align="center">
<table border="0" width="1053" cellspacing="0" cellpadding="0" id="table2">
<tr>
<td width="211" rowspan="2">
<img border="0" src="images/gold-buying-girl-home.png" width="221" height="255" alt="Gold Buyer in Houston"></td>
<td width="832">
<img border="0" src="images/gold-party-purse.jpg" width="594" height="204" align="right" alt="Gold Buyer and Gold Parties"></td>
</tr>

<tr>
<td align="right" width="832">
<p align="center">
<a href="index.html"><img border="0" src="/images/button-home.png" width="185" height="51" alt="Houston Gold Parties"></a>
<a href="about_gold_buying_girl.html"><img border="0" src="images/button-host-a-gold-party.png" width="192" height="51" alt="Host A Gold Party"></a>
<a href="faq.html"><img border="0" src="images/button-faq.png" width="181" height="51"></a>
<a href="contact_gold_buying_girl.html"><img border="0" src="images/button-contact.png" width="192" height="51"></a>
<a href="gold-party-testimonials.html"><img border="0" src="images/button-testimonials.png" width="192" height="51"></a>
<a href="contact_gold_buying_girl.html"><img border="0" src="images/button-appointment.png" width="240" height="51">

</a>
<a href="welcome.htm"> </a><a href="contact_gold_buying_girl.html"><img border="0" src="images/charity.png" width="192" height="51"></a>
<a href="become_a_gold_buyer.html"><img border="0" src="images/button-gbg.png" width="192" height="51"></a>
</td>
</tr>
</table>
</div>
<div align="center">
<table border="0" width="1050" cellspacing="0" cellpadding="0" id="table1">

<tr>
<td valign="top" rowspan="3" width="246">
</td>
<td valign="top" rowspan="3" width="30">&nbsp;
</td>
</tr>
<tr>
<td align="left" width="768">
&nbsp;

<p>&nbsp;
</td>
</tr>
<tr>
<td align="center" width="768" valign="middle" >
<b>
<font color="#FFFFFF" size="3" face="Georgia"><a href="http://www.cabida.com/gbgcal/cks.php" target="_blank"><i>View
the Calendar</i></a></font>
<i><font color="#FFFFFF" face="Georgia" size="2"> (opens
in a new tab or window)</font></i></b><br><br>

<p><i><b><a href="calendarupdateform.htm"><font face="Georgia" color="#FFFFFF" size="3">Send a Calendar
Update to the Gold Buying Girl</font></a></b></i></p>
<p><b><font color="#FFFFFF" size="3" face="Georgia"><a href="http://www.cabida.com/gbgcal/calen.php"><br>
<i>Maintain the Calendar</i></a><i> </i></font>
<i><font color="#FFFFFF" face="Georgia" size="2">(requires
a password)</font></i></b>
</td>
</tr>
<tr>

<td valign="top" width="246">
I have not idea where you want the price to show up but ummmm here? <div id="price"><?php echo $price_is; ?></div>
</td>
<td valign="top" width="30">
</td>
<td align="center" width="768">



</td>
</tr>
</table>
</div>
<p align="center">

&nbsp;</p>
<script type="text/javascript">
<!--
swfobject.registerObject("FlashID");
//-->
</script>
</body>
</html>
<?php
}
?>

HWL
06-16-2010, 07:08 PM
thanks you for your time.....
still no go
I wrote the new file, and chmodd'ed both files to 777 to be sure...
I dont see the form box, and the size of the text file is still zero

HWL
06-16-2010, 07:11 PM
if I enter a number into the price.txt file it shows, so we are not writing into that file

bluewalrus
06-16-2010, 07:56 PM
hmm how about if you put this in to see what is happening



<?php
echo "Processing";
if (isset($_POST['access']) && $_POST['access'] = "password") {
echo "Processing" . "password set";
//this assumes the users password is password for access. You can also hash this with md5 if you want or some other method of your choosing
if (isset($_POST['new_price']) && $_POST['new_price'] !="") {
echo "Processing" . "price set";
$price = $_POST['new_price'];
echo "price is $price";
$current_price = "price.txt";
echo "file is $current_price";
file_put_contents($current_price, $price);
}
}
if (isset($_GET['price']) && $_GET['price'] !="") {
?>
<form action="<?php echo $_SERVER['PHP_SELF'];?>" method="post">
Input the New Price to be displayed:<input type="text" name="new_price" /><br />
Input your Password:<input type="password" name="access" /><br />
<input type="submit" />
</form>
<?php
} else {
$current_price = "price.txt";
$price_is = file_get_contents($current_price);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<style type="text/css">
#price {
/*style price however you want here*/
}
</style>
<title>Contact The Gold Buying Girl For A Gold Party or To Sell Gold</title>
<meta name="ROBOTS" content="INDEX,FOLLOW">
<meta name="description" content="Gold Buying Girl, Host a gold party in Houston, gold buyer, mailing gold, gold parties in Houston, TX">
<meta name="keywords" content="Gold Buying Girl, gold buyer in houston, host a gold party, mailing gold, gold parties in Houston, TX">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">

<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>
<body background="images/background60.jpg" topmargin="0" link="#FFFFFF" vlink="#FFFFFF" alink="#000000">

<div align="center">
<table border="0" width="1053" cellspacing="0" cellpadding="0" id="table2">
<tr>
<td width="211" rowspan="2">
<img border="0" src="images/gold-buying-girl-home.png" width="221" height="255" alt="Gold Buyer in Houston"></td>
<td width="832">
<img border="0" src="images/gold-party-purse.jpg" width="594" height="204" align="right" alt="Gold Buyer and Gold Parties"></td>
</tr>

<tr>
<td align="right" width="832">
<p align="center">
<a href="index.html"><img border="0" src="/images/button-home.png" width="185" height="51" alt="Houston Gold Parties"></a>
<a href="about_gold_buying_girl.html"><img border="0" src="images/button-host-a-gold-party.png" width="192" height="51" alt="Host A Gold Party"></a>
<a href="faq.html"><img border="0" src="images/button-faq.png" width="181" height="51"></a>
<a href="contact_gold_buying_girl.html"><img border="0" src="images/button-contact.png" width="192" height="51"></a>
<a href="gold-party-testimonials.html"><img border="0" src="images/button-testimonials.png" width="192" height="51"></a>
<a href="contact_gold_buying_girl.html"><img border="0" src="images/button-appointment.png" width="240" height="51">

</a>
<a href="welcome.htm"> </a><a href="contact_gold_buying_girl.html"><img border="0" src="images/charity.png" width="192" height="51"></a>
<a href="become_a_gold_buyer.html"><img border="0" src="images/button-gbg.png" width="192" height="51"></a>
</td>
</tr>
</table>
</div>
<div align="center">
<table border="0" width="1050" cellspacing="0" cellpadding="0" id="table1">

<tr>
<td valign="top" rowspan="3" width="246">
</td>
<td valign="top" rowspan="3" width="30">&nbsp;
</td>
</tr>
<tr>
<td align="left" width="768">
&nbsp;

<p>&nbsp;
</td>
</tr>
<tr>
<td align="center" width="768" valign="middle" >
<b>
<font color="#FFFFFF" size="3" face="Georgia"><a href="http://www.cabida.com/gbgcal/cks.php" target="_blank"><i>View
the Calendar</i></a></font>
<i><font color="#FFFFFF" face="Georgia" size="2"> (opens
in a new tab or window)</font></i></b><br><br>

<p><i><b><a href="calendarupdateform.htm"><font face="Georgia" color="#FFFFFF" size="3">Send a Calendar
Update to the Gold Buying Girl</font></a></b></i></p>
<p><b><font color="#FFFFFF" size="3" face="Georgia"><a href="http://www.cabida.com/gbgcal/calen.php"><br>
<i>Maintain the Calendar</i></a><i> </i></font>
<i><font color="#FFFFFF" face="Georgia" size="2">(requires
a password)</font></i></b>
</td>
</tr>
<tr>

<td valign="top" width="246">
I have not idea where you want the price to show up but ummmm here? <div id="price"><?php echo $price_is; ?></div>
</td>
<td valign="top" width="30">
</td>
<td align="center" width="768">



</td>
</tr>
</table>
</div>
<p align="center">

&nbsp;</p>
<script type="text/javascript">
<!--
swfobject.registerObject("FlashID");
//-->
</script>
</body>
</html>
<?php
}
?>

HWL
06-16-2010, 08:05 PM
in and 777'ed
thanks

HWL
06-16-2010, 08:07 PM
can you strip all the existing page info out, I'll make a new file and we can see if the base file works?

HWL
06-16-2010, 08:09 PM
I am running a Blue Quartz server with PHP version: 4.3.9

bluewalrus
06-16-2010, 08:28 PM
Oh that's the problem file_put_contents doesnt work in php 4. Have to rewrite it with fopen...

bluewalrus
06-17-2010, 12:15 AM
Rewritten, fixed another problem too.



<?php
if (isset($_POST['access']) && $_POST['access'] == "password") {
//this assumes the users password is password for access. You can also hash this with md5 if you want or some other method of your choosing
if (isset($_POST['new_price']) && $_POST['new_price'] !="") {
$price = $_POST['new_price'];
$current_price = "price.txt";
$file_save = fopen($current_price, 'w');
fwrite($file_save, $price);
fclose($file_save);
}
}
if (isset($_GET['price']) && $_GET['price'] !="") {
?>
<form action="<?php echo $_SERVER['PHP_SELF'];?>" method="post">
Input the New Price to be displayed:<input type="text" name="new_price" /><br />
Input your Password:<input type="password" name="access" /><br />
<input type="submit" />
</form>
<?php
} else {
$current_price = "price.txt";
$price_is = file_get_contents($current_price);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<style type="text/css">
#price {
/*style price however you want here*/
}
</style>
<title>Contact The Gold Buying Girl For A Gold Party or To Sell Gold</title>
<meta name="ROBOTS" content="INDEX,FOLLOW">
<meta name="description" content="Gold Buying Girl, Host a gold party in Houston, gold buyer, mailing gold, gold parties in Houston, TX">
<meta name="keywords" content="Gold Buying Girl, gold buyer in houston, host a gold party, mailing gold, gold parties in Houston, TX">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">

<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>
<body background="images/background60.jpg" topmargin="0" link="#FFFFFF" vlink="#FFFFFF" alink="#000000">

<div align="center">
<table border="0" width="1053" cellspacing="0" cellpadding="0" id="table2">
<tr>
<td width="211" rowspan="2">
<img border="0" src="images/gold-buying-girl-home.png" width="221" height="255" alt="Gold Buyer in Houston"></td>
<td width="832">
<img border="0" src="images/gold-party-purse.jpg" width="594" height="204" align="right" alt="Gold Buyer and Gold Parties"></td>
</tr>

<tr>
<td align="right" width="832">
<p align="center">
<a href="index.html"><img border="0" src="/images/button-home.png" width="185" height="51" alt="Houston Gold Parties"></a>
<a href="about_gold_buying_girl.html"><img border="0" src="images/button-host-a-gold-party.png" width="192" height="51" alt="Host A Gold Party"></a>
<a href="faq.html"><img border="0" src="images/button-faq.png" width="181" height="51"></a>
<a href="contact_gold_buying_girl.html"><img border="0" src="images/button-contact.png" width="192" height="51"></a>
<a href="gold-party-testimonials.html"><img border="0" src="images/button-testimonials.png" width="192" height="51"></a>
<a href="contact_gold_buying_girl.html"><img border="0" src="images/button-appointment.png" width="240" height="51">

</a>
<a href="welcome.htm"> </a><a href="contact_gold_buying_girl.html"><img border="0" src="images/charity.png" width="192" height="51"></a>
<a href="become_a_gold_buyer.html"><img border="0" src="images/button-gbg.png" width="192" height="51"></a>
</td>
</tr>
</table>
</div>
<div align="center">
<table border="0" width="1050" cellspacing="0" cellpadding="0" id="table1">

<tr>
<td valign="top" rowspan="3" width="246">
</td>
<td valign="top" rowspan="3" width="30">&nbsp;
</td>
</tr>
<tr>
<td align="left" width="768">
&nbsp;

<p>&nbsp;
</td>
</tr>
<tr>
<td align="center" width="768" valign="middle" >
<b>
<font color="#FFFFFF" size="3" face="Georgia"><a href="http://www.cabida.com/gbgcal/cks.php" target="_blank"><i>View
the Calendar</i></a></font>
<i><font color="#FFFFFF" face="Georgia" size="2"> (opens
in a new tab or window)</font></i></b><br><br>

<p><i><b><a href="calendarupdateform.htm"><font face="Georgia" color="#FFFFFF" size="3">Send a Calendar
Update to the Gold Buying Girl</font></a></b></i></p>
<p><b><font color="#FFFFFF" size="3" face="Georgia"><a href="http://www.cabida.com/gbgcal/calen.php"><br>
<i>Maintain the Calendar</i></a><i> </i></font>
<i><font color="#FFFFFF" face="Georgia" size="2">(requires
a password)</font></i></b>
</td>
</tr>
<tr>

<td valign="top" width="246">
I have not idea where you want the price to show up but ummmm here? <div id="price"><?php echo $price_is; ?></div>
</td>
<td valign="top" width="30">
</td>
<td align="center" width="768">



</td>
</tr>
</table>
</div>
<p align="center">

&nbsp;</p>
<script type="text/javascript">
<!--
swfobject.registerObject("FlashID");
//-->
</script>
</body>
</html>
<?php
}
?>

HWL
06-17-2010, 03:04 AM
updated
still not writing to the price.txt file (777)
thank you

djr33
06-17-2010, 03:06 AM
I'd suggest finding out how to write a file on your server. This is now a large and complex script, and there's no need to test within it when there could be a number of things causing problems for writing files. Once you find a method that works on your server, adapt the script to use that and it should be fine.

HWL
06-17-2010, 03:16 AM
I have several php files and scripts running on my server.
I am open to suggestions as to the problem but a Blue Quartz server is not an unusual system...
I am copying and pasting several ways and I think the server file is OK.
I am open to suggestions.
Thank you all very much though....I realize this is someone's hard work!

HWL
06-17-2010, 04:01 PM
FWIW - I have now put the files on an Apache server on a W2K box with PHP5.2.12.
http://www.cabida.com/gbgcal/price.php
This box runs numerous PHP scripts.
I continue to get the same errors regardless of which of the 3 files I use and never see either the form entry box or the authorization challenge...in fact on data entry I get a Forbidden.
The file up now has been striped to eliminate the possibility of other code stuff possible screwing things up.
Again, if I populate the txt file that info shows up so I still assume I am not writing to the txt file...
Thank you

bluewalrus
06-17-2010, 04:46 PM
Are you using the fwrite or the file_put_contents? Can you post the code you are using and a link?

HWL
06-17-2010, 04:59 PM
your second complete script is on the PHPv5 box
http://www.cabida.com/gbgcal/price.php
the chmod info is the same as all other PHP files there.

the 3rd complete script is on the v4 box
http://www.goldbuyinggirl.com/price.php
the chmod is 777

On neither do I see a form box, do I get a password challenge, and yet if I manually populate the txt file, it does show up on the pages.
I have tried all the revisions on both sites.
Thanks

bluewalrus
06-17-2010, 05:25 PM
The php v5 works for me...

You have go in from the link though

http://www.cabida.com/gbgcal/price.php?price=1

for more info on the functions being used here see the following


http://php.net/manual/en/reserved.variables.get.php
http://www.php.net/manual/en/reserved.variables.post.php
http://us4.php.net/manual/en/function.file-get-contents.php
http://us4.php.net/manual/en/function.file-put-contents.php

HWL
06-17-2010, 07:03 PM
Well, this might be the problem -
you wrote:
"To update the price the user should load http://domain.com/?price=anythingcanbehere" so Ive been entering in that format instead of http://domain.com/price.php?price=anythingcanbehere
Doh!
I'll test some more and thanks a bunch!