Forum: PHP Apr 21st, 2009 |
| Replies: 2 Views: 297 I think you can add validation after this line :
if ($_POST['form_submitted'] == '1') {
## Form submitted, user registering!
the most simple php script to check required fields is :
... |
Forum: PHP Apr 19th, 2009 |
| Replies: 6 Views: 729 mmm ithink there's a problem with your query.
try to echo-ing to query like this :
echo $query;
is it read $user and $pass variable ??
if its not read those variable you can change query... |
Forum: PHP Jan 12th, 2009 |
| Replies: 3 Views: 753 I think KKeith is right, you can fix this issue by change this code :
$booksid = $_GET[id]; //the product id from the URL |
Forum: PHP Jan 12th, 2009 |
| Replies: 7 Views: 1,544 You must change your code on line 25 like this:
$content = "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>"; |
Forum: PHP Nov 23rd, 2008 |
| Replies: 3 Views: 4,191 Thx for the reply Pete, ill try to use your class.
Cheers |
Forum: PHP Nov 19th, 2008 |
| Replies: 3 Views: 2,111 Hi all, glad to write here again, i need all your help :)
Does anyone knows or have simple online booking system that can attach in a wordpress blog.
This plugin let user choose check in date and... |
Forum: PHP Sep 17th, 2008 |
| Replies: 3 Views: 4,191 Hi all,
im starting to use paypal in my custom cart, i want to use express checkout in my cart. Can anyone tell me how to retrieve paypal token with php script ??
or just give me a simple brief... |
Forum: PHP May 17th, 2008 |
| Replies: 3 Views: 464 try it like this
if($submit){
$query = "your update query";
$result = mysql_query($query);
if($result){
header("Location: yourpage.php");
}
} |
Forum: PHP Apr 30th, 2008 |
| Replies: 3 Views: 998 This is a simple way to do it :
mysql_connect("yourhost","yourusername","yourpass");
mysql_select_db("yourdb");
$result = mysql_query(SELECT * FROM tablename LIMIT 1);
while($row =... |
Forum: PHP Apr 18th, 2008 |
| Replies: 2 Views: 1,885 thx kkeith how can i implement this in javascript or other stuff, if anyone knows how to solve this pls let me know |
Forum: PHP Apr 18th, 2008 |
| Replies: 2 Views: 1,885 Hi all, can someone tell me how to display image in select form element
i've try to do this, but its not workin
hope u guys can figure it out |
Forum: PHP Apr 14th, 2008 |
| Replies: 3 Views: 593 try it like this
<form name="form-name" method="post" action="<? $_SERVER['PHP_SELF'] ?>?var_name=<? echo $var_value ?>&var_name2=<? echo $var_value2 ?>"> |
Forum: PHP Mar 20th, 2008 |
| Replies: 3 Views: 416 u can download php manual in php.net
it help me a lot |
Forum: PHP Mar 13th, 2008 |
| Replies: 4 Views: 1,405 try wordpress man, i think its more simple |
Forum: PHP Mar 13th, 2008 |
| Replies: 3 Views: 518 instead lydia21 solution, you can add "hidden field" in your first form containing field "ID"
like :
<input name="id" type="hidden" id="id" value="<? echo $row[id] ?>" />
in your second page u... |
Forum: PHP Mar 4th, 2008 |
| Replies: 7 Views: 643 I think silviuks, is right, you not using $bg as background color (you just set its value). |
Forum: PHP Jan 18th, 2008 |
| Replies: 24 Views: 2,463 just like nav33n said i think u forget to put [ ' ] in front of $city -> .....'$city')" |
Forum: PHP Jan 16th, 2008 |
| Replies: 7 Views: 10,803 hi woobag,
i think u can use "<br>" instead of "\n" |
Forum: PHP Jan 16th, 2008 |
| Replies: 10 Views: 1,095 hi, there's a mistake in my earlier code
here's the right one ( i've tried it)
first u must make a hidden field in your form for number of textbox
example "<input name="textbox_num" type="hidden"... |
Forum: PHP Jan 16th, 2008 |
| Replies: 10 Views: 1,095 try it like this
for($i=0;$<$number_of_textboxes;$i++){
$txtboxname = $txt.$i;
$textbox_value .= $_POST[$txtboxname] ;
$textbox_value .= "<br>"; //one value per line
}
... |
Forum: PHP Jan 7th, 2008 |
| Replies: 2 Views: 622 I agree with u buddylee, there's one more option for this case, you can sent ur "subdomain" variable through GET method.
example : linktomydomain.com?location=England
then u can take $location... |
Forum: PHP Jan 7th, 2008 |
| Replies: 5 Views: 1,036 I think you can use row cat_id (`cat_id` int(11) NOT NULL auto_increment).
maybe you can order it like this
SELECT * FROM 'jos_afm_cats' ORDER BY 'cat_id' ASC; |
Forum: PHP Jan 3rd, 2008 |
| Replies: 24 Views: 5,295 hi dan maybe u can check php.net theres a good resources to learn it, and u can download php manual there .... |