<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>p2p.wrox.com Forums - PHP How-To</title>
		<link>http://p2p.wrox.com</link>
		<description><![CDATA[Post your "How do I do this with PHP?" questions here.]]></description>
		<language>en</language>
		<lastBuildDate>Sat, 21 Nov 2009 13:26:01 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://p2p.wrox.com/images/misc/rss.jpg</url>
			<title>p2p.wrox.com Forums - PHP How-To</title>
			<link>http://p2p.wrox.com</link>
		</image>
		<item>
			<title>How to Handle more than one submit button in single form?</title>
			<link>http://p2p.wrox.com/php-how/77049-how-handle-more-than-one-submit-button-single-form.html</link>
			<pubDate>Mon, 16 Nov 2009 11:25:42 GMT</pubDate>
			<description><![CDATA[Hi
I have one PHP file which contains one Form. In this form there are two Submit type Buttons
<input type="submit" name="edit" value="save"> 
<input...]]></description>
			<content:encoded><![CDATA[<div>Hi<br />
I have one PHP file which contains one Form. In this form there are two Submit type Buttons<br />
&lt;input type=&quot;submit&quot; name=&quot;edit&quot; value=&quot;save&quot;&gt; <br />
&lt;input type=&quot;submit&quot; name=&quot;cancel&quot; value=&quot;cancel&quot;&gt;<br />
&lt;form name=&quot;myform&quot; onsubmit=&quot;return validate()&quot;&gt;<br />
<br />
My problem is : When i m trying to use Javascript onsubmit event of a form it confused due to two submit buttons and onsubmit of any button(save or cancel) it runs Javascript. Generally it should not run on cancel button.<br />
<br />
Please provide solution as soon as possible.<br />
<br />
thanks in advance.<br />
<br />
Anish Panchal<br />
<a href="http://www.tatvasoft.com" target="_blank">Software Outsourcing India</a><br />
<a href="http://www.sparsh-technologies.com" target="_blank">Web Development Company India</a></div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/php-how-98/">PHP How-To</category>
			<dc:creator>ctatvasoft</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/php-how/77049-how-handle-more-than-one-submit-button-single-form.html</guid>
		</item>
		<item>
			<title>Mysql database to listbox need help</title>
			<link>http://p2p.wrox.com/php-how/76782-mysql-database-listbox-need-help.html</link>
			<pubDate>Tue, 27 Oct 2009 08:51:40 GMT</pubDate>
			<description><![CDATA[1.<html>
2.  <head>
3.   <title>List Box Form Data</title>
4.   </head>
5.  <body>
 
6.   <p>Form data passed from the form</p>
7.      <?php
8.     ...]]></description>
			<content:encoded><![CDATA[<div>1.&lt;html&gt;<br />
2.  &lt;head&gt;<br />
3.   &lt;title&gt;List Box Form Data&lt;/title&gt;<br />
4.   &lt;/head&gt;<br />
5.  &lt;body&gt;<br />
 <br />
6.   &lt;p&gt;Form data passed from the form&lt;/p&gt;<br />
7.      &lt;?php<br />
8.       require(&quot;./resources/globals.php&quot;) ;<br />
9.      $query=&quot;SELECT DISTINCT * FROM Garant GROUP BY Location&quot;;<br />
10.      $stmt= substr($query, 0, strlen($query)-4) ;<br />
<br />
11.// Connect to the Database<br />
12.$link=mysql_connect($location,$userName,$passwo  rd) or die (mysql_error());<br />
13.mysql_select_db($dbname) or die (mysql_error());<br />
14.$result=mysql_query($query) or die (mysql_error());<br />
<br />
15.// Select the Database<br />
16.if (!mysql_select_db($dbname, $link)) {<br />
17.   DisplayErrMsg(sprintf(&quot;Error in selecting %s database&quot;, $dbname)) ;<br />
18.   DisplayErrMsg(sprintf(&quot;error:%d %s&quot;, mysql_errno($link), mysql_error<br />
19.($link))) ;<br />
20.   exit() ;<br />
21.}<br />
<br />
22.// Execute the Statement<br />
23.if (!($result =mysql_query($query, $link))) {<br />
24.   DisplayErrMsg(sprintf(&quot;Error in executing %s stmt&quot;, $query)) ;<br />
25.   DisplayErrMsg(sprintf(&quot;error:%d %s&quot;, mysql_errno($link), mysql_error<br />
26.($link))) ;<br />
27.   exit() ;<br />
28.}   <br />
                                                                 <br />
29.echo&quot;&lt;form method=&quot;post&quot; action=&quot;&lt;?php echo $_SERVER['PHP_SELF'] ?&gt;&quot;&gt;';<br />
<br />
30.echo '&lt;select name=&quot;areasearch&quot; onChange=&quot;submit();&quot;&gt;'; <br />
31.while($nt=mysql_fetch_array($result)){//Array or records stored in $nt<br />
32.echo &quot;&lt;option value=$nt[Town]&gt;$nt[Location]&lt;/option&gt;&quot;;<br />
33.}<br />
34. echo&quot;&lt;/select&gt;&quot;;<br />
<br />
35.  echo&quot; &lt;/form&gt;&quot;;<br />
36. echo $areasearch;<br />
<br />
37. mysql_free_result($result) ;<br />
 38.     ?&gt;<br />
   <br />
 39. &lt;/body&gt;<br />
40.  &lt;/html&gt;<br />
The above code pulls the Location field records from database Garant. What I need to do is when a town is selected from the listbox, a new search thats finds all the places with that Location name. I can do the search stuff but how to get $areasearch valid?<br />
Thanks for any help.<br />
F</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/php-how-98/">PHP How-To</category>
			<dc:creator>phobia1</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/php-how/76782-mysql-database-listbox-need-help.html</guid>
		</item>
		<item>
			<title>How to develop a cms using php5?</title>
			<link>http://p2p.wrox.com/php-how/76708-how-develop-cms-using-php5.html</link>
			<pubDate>Thu, 22 Oct 2009 16:09:17 GMT</pubDate>
			<description>Can anyone give me the full source code (in php) for content management system (professional looking )for a dynamic website?</description>
			<content:encoded><![CDATA[<div>Can anyone give me the full source code (in php) for content management system (professional looking )for a dynamic website?</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/php-how-98/">PHP How-To</category>
			<dc:creator>bikram_068</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/php-how/76708-how-develop-cms-using-php5.html</guid>
		</item>
	</channel>
</rss>
