searls03 Posted March 13, 2011 Share Posted March 13, 2011 ok, how do I make this button go to the specific link that is set with it.......it goes to page without eventid=eventid: <form action= \"editevent.php?eventid=".$row['eventid']."\" method=\"link\"><INPUT TYPE=\"submit\" VALUE=\"Edit\"></form>"; Quote Link to comment Share on other sites More sharing options...
cunoodle2 Posted March 13, 2011 Share Posted March 13, 2011 How about this.. IF you are NOT in php tags then do this.. <form action="editevent.php?eventid=<?php echo $row['eventid']; ?>" method="link"><INPUT TYPE="submit" VALUE="Edit"></form>"; If you ARE in php tags then do this.. echo "<form action=\"editevent.php?eventid=".$row['eventid']."\" method=\"link\"><INPUT TYPE=\"submit\" VALUE=\"Edit\"></form>\n"; Quote Link to comment Share on other sites More sharing options...
searls03 Posted March 13, 2011 Author Share Posted March 13, 2011 nope, still is not working, it is in php tags. Quote Link to comment Share on other sites More sharing options...
cunoodle2 Posted March 13, 2011 Share Posted March 13, 2011 nope, still is not working, it is in php tags. I see that you have a lot of back and forths on many of your topics. Honestly posting something like the above of "nope, still is not working" does us/me ZERO good. Please do ALL of the following.. 1) Post your code. Without it we can't do ANYTHING 2) Also do a View > Source of your page and post that. Without that we can't do ANYTHING 3) Post any error messages you are getting. Without it we can't do ANYTHING Then answer these two questions.. 4) What are you EXPECTING to happen? 5) What is ACTUALLY happening? Quote Link to comment Share on other sites More sharing options...
searls03 Posted March 13, 2011 Author Share Posted March 13, 2011 as i had said from the code you gave me: no that is not working. The code I want is in php tags. I want it to go to page.....editevent.php?eventid=$eventid. instead it goes to .....editevent.php: <?php if (isset($_POST['submitted'])) { include('connect1.php'); $category = $_POST['category']; $criteria = $_POST['criteria'] ; $query = "SELECT * FROM Registration WHERE $category LIKE '%".$criteria."%'"; $result = mysqli_query($dbcon, $query) or die('error getting data'); $num_rows = mysqli_num_rows($result); echo "$num_rows results found"; echo "<table width=\"896\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"; echo "<tr bgcolor=\"#F7E496\"><td bgcolor=\"#F7E496\"><strong>Event Name</strong></td> <td bgcolor=\"#F7E496\"><strong>Date</strong></td> <td bgcolor=\"#F7E496\"><strong>Price</strong></td> <td bgcolor=\"#F7E496\"><strong>Location</strong></td><td bgclor=\"#F7E496\"></td></tr>"; while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) { echo "<tr><td>"; echo "<a href=\"editevent.php?eventid=".$row['eventid']."\">".$row['event']."</a>"; echo "</td><td>"; echo $row['date']; echo "</td><td>"; echo $row['price']; echo "</td><td>"; echo $row['location']; echo "</td><td>"; echo "<form action=\"editevent.php?eventid=".$row['eventid']."\" method=\"link\"><INPUT TYPE=\"submit\" VALUE=\"Edit\"></form>\n"; echo "</td><td>"; echo "<form action=\"delete_ac.php?eventid=".$row['eventid']."\" method=\"link\"><INPUT TYPE=\"submit\" VALUE=\"Delete\"></form>\n"; echo "</td></tr>"; } echo "</table>"; } ?> Quote Link to comment Share on other sites More sharing options...
cunoodle2 Posted March 13, 2011 Share Posted March 13, 2011 I asked for a view>source. Do that and then we will move forward. My # questions could not have been any clearer. I'm not sure what the issue is here. The better info you give us the faster your question will be solved..... Quote Link to comment Share on other sites More sharing options...
searls03 Posted March 13, 2011 Author Share Posted March 13, 2011 <?php session_start(); // Must start session first thing /* Created By Adam Khoury @ www.flashbuilding.com -----------------------June 20, 2008----------------------- */ // Here we run a login check if (!isset($_SESSION['id'])) { echo 'Please <a href="login.php">log in</a> to access your account'; exit(); } //Connect to the database through our include include_once "connect_to_mysql.php"; // Place Session variable 'id' into local variable $userid = $_SESSION['id']; ?> <?php // Query member data from the database and ready it for display $sql = mysql_query("SELECT * FROM members WHERE userid='$userid' LIMIT 1"); while($row = mysql_fetch_array($sql)){ $name = $row["name"]; $phone = $row["phone"]; $username = $row["username"]; $address = $row["address"]; $city = $row["city"]; $state = $row["state"]; $zip = $row["zip"]; $cell = $row["cell"]; $email = $row["email"]; $accounttype = $row["accounttype"]; $rank = $row["rank"]; $badges = $row["badges"]; } ?> <!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"><!-- InstanceBegin template="/Templates/template2.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Untitled Document</title> <!-- InstanceEndEditable --> <style type="text/css"> #apDiv1 { position:absolute; left:33px; top:320px; width:252px; height:48px; z-index:1; } #apDiv2 { position:absolute; left:33px; top:361px; width:254px; height:46px; z-index:2; } #apDiv3 { position:absolute; left:33px; top:525px; width:256px; height:43px; z-index:3; } #apDiv4 { position:absolute; left:33px; top:402px; width:250px; height:48px; z-index:4; } #apDiv5 { position:absolute; left:106px; top:616px; width:263px; height:255px; z-index:5; } #apDiv6 { position:absolute; left:323px; top:200px; width:898px; height:530px; z-index:5; } #apDiv7 { position:absolute; left:33px; top:443px; width:266px; height:42px; z-index:6; } #apDiv8 { position:absolute; left:111px; top:500px; width:125px; height:37px; z-index:7; } #apDiv8 strong { font-size: 24px; } #apDiv9 { position:absolute; left:33px; top:408px; width:267px; height:49px; z-index:8; } #apDiv10 { position:absolute; left:33px; top:449px; width:242px; height:23px; z-index:9; } #apDiv8 a { color: #000; } #apDiv11 { position:absolute; left:101px; top:490px; width:168px; height:42px; z-index:10; font-size: 24px; font-weight: bold; } #apDiv11 a { color: #000; } #apDiv12 { position:absolute; left:33px; top:210px; width:205px; height:135px; z-index:11; } #apDiv12 { text-align: center; } #apDiv13 { position:absolute; left:33px; top:320px; width:258px; height:47px; z-index:12; } #apDiv { position:absolute; left:33px; top:484px; width:225px; height:35px; z-index:11; } #apDiv14 { position:absolute; left:33px; top:566px; width:298px; height:51px; z-index:12; } #apDiv15 { position:absolute; left:101px; top:611px; width:168px; height:42px; z-index:10; font-size: 24px; font-weight: bold; } #apDiv5 a { font-size: 24px; color: #000; font-weight: bold; } </style> <script type="text/javascript"> function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } </script> <!-- InstanceBeginEditable name="head" --> <style type="text/css"> #apDiv6 form table tr th input { text-align: right; } .jfekjfe { text-align: right; } .adfd { font-weight: bold; } #apDiv6 form table tr td { font-weight: bold; } </style><!-- InstanceEndEditable --> <!-- InstanceParam name="id" type="text" value="apDiv6" --> </head> <body onload="MM_preloadImages('button/myprofile2.png','button/pictures2.png','button/projects1.png','button/news2.png','button/eventmanager2.png','button/membermanager2.png','button/newsmanager2.png')"> <div id="apDiv2"><a href="register.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','button/register2.png',1)"><img src="button/register1.png" name="Image3" width="235" height="50" border="0" id="Image3" /></a></div> <div id="apDiv4"><a href="projects.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image4','','button/projects2.png',1)"><img src="button/projects1.png" name="Image4" width="235" height="50" border="0" id="Image4" /></a></div> <div id="apDiv11"><?php if ($accounttype == "Scout") { echo '<a href="../logout.php">Logout</a>';} ?></div> <div id="apDiv12"><?php echo "$accounttype"; ?> <p><?php echo "$name"; ?></p> <p>Troop 78</p> </div> <div id="apDiv13"><a href="myprofile.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','button/myprofile2.png',1)"><img src="button/myprofile1.png" name="Image5" width="235" height="50" border="0" id="Image5" /></a></div> <div id="apDiv5"><?php if ($accounttype == "Admin") { echo "<a href=\"../logout.php\">Logout</a>"; } ?></div> </a> </div> <div id="apDiv6"><!-- InstanceBeginEditable name="EditRegion3" --><h1>Search Events</h1> <p><a href="addevent.php">Add Event</a></p> <form method="post" action="eventmanager.php"> <input type="hidden" name="submitted" value="true" ?/> <table width="896" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="127" bgcolor="#F7E496" class="adfd" scope="col">Property</td> <td width="181" bgcolor="#F7E496" scope="col">Value</td> <td width="588" bgcolor="#F7E496" scope="col"> </td> </tr> <tr> <td bgcolor="#F7E496"><select name="category"> <option value="event">Event Name</option> <option value="date">Date</option> <option value="price">Price</option> <option value="location">Location</option> </select></td> <td bgcolor="#F7E496"><input type="text" name ="criteria" /></td> <td bgcolor="#F7E496"><input type="submit" /></td> </tr> <tr> <td bgcolor="#F7E496"> </td> <td bgcolor="#F7E496"> </td> <td bgcolor="#F7E496"> </td> </tr> <tr> <td bgcolor="#F7E496"> </td> <td bgcolor="#F7E496"> </td> <td bgcolor="#F7E496"> </td> </tr> </table> </form><form action="eventred.php" method="post"> <table width="897" border="0" cellspacing="2" cellpadding="2"> <tr> <th width="356" class="jfekjfe" scope="col"><input name="submit" type="submit" value="Add Event" /></th> </tr> </table> </form> <?php if (isset($_POST['submitted'])) { include('connect1.php'); $category = $_POST['category']; $criteria = $_POST['criteria'] ; $query = "SELECT * FROM Registration WHERE $category LIKE '%".$criteria."%'"; $result = mysqli_query($dbcon, $query) or die('error getting data'); $num_rows = mysqli_num_rows($result); echo "$num_rows results found"; echo "<table width=\"896\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"; echo "<tr bgcolor=\"#F7E496\"><td bgcolor=\"#F7E496\"><strong>Event Name</strong></td> <td bgcolor=\"#F7E496\"><strong>Date</strong></td> <td bgcolor=\"#F7E496\"><strong>Price</strong></td> <td bgcolor=\"#F7E496\"><strong>Location</strong></td><td bgclor=\"#F7E496\"></td></tr>"; while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) { echo "<tr><td>"; echo "<a href=\"editevent.php?eventid=".$row['eventid']."\">".$row['event']."</a>"; echo "</td><td>"; echo $row['date']; echo "</td><td>"; echo $row['price']; echo "</td><td>"; echo $row['location']; echo "</td><td>"; echo "<form action=\"editevent.php?eventid=".$row['eventid']."\" method=\"link\"><INPUT TYPE=\"submit\" VALUE=\"Edit\"></form>\n"; echo "</td><td>"; echo "<form action=\"delete_ac.php?eventid=".$row['eventid']."\" method=\"link\"><INPUT TYPE=\"submit\" VALUE=\"Delete\"></form>\n"; echo "</td></tr>"; } echo "</table>"; } ?><!-- InstanceEndEditable --></div> <div id="apDiv7"><a href="news.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image6','','button/news2.png',1)"><img src="button/news1.png" name="Image6" width="235" height="50" border="0" id="Image6" /></a></div> <div id="apDiv"> <?php if ($accounttype == "Admin") { echo "<a href=\"../search1.php\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image7','','../button/membermanager2.png',1)\"><img src=\"../button/membermanager1.png\" name=\"Image7\" width=\"235\" height=\"50\" border=\"0\" id=\"Image7\" /></a>"; } ?></div> <div id="apDiv3"><?php if ($accounttype == "Admin") { echo "<a href=\"../addevent.php\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image8','','../button/eventmanager2.png',1)\"><img src=\"../button/eventmanager1.png\" name=\"Image8\" width=\"235\" height=\"50\" border=\"0\" id=\"Image8\" /></a>"; } ?> </div> <div id="apDiv14"><?php if ($accounttype == "Admin") { echo "<a href=\"../addart.php\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image9','','../button/newsmanager2.png',1)\"><img src=\"../button/newsmanager1.png\" name=\"Image9\" width=\"234\" height=\"50\" border=\"0\" id=\"Image9\" /></a>"; } ?> </div> <img name="boyscout" src="buttons/boyscout.jpg" width="1180" height="700" border="0" id="boyscout" alt="" /> </body> <!-- InstanceEnd --></html> Quote Link to comment Share on other sites More sharing options...
cunoodle2 Posted March 13, 2011 Share Posted March 13, 2011 That is not a view source. Here go to this page to see how to view source.. http://tinyurl.com/49xe89w Also I give up on trying to help. You can't follow basic directions. Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted March 13, 2011 Share Posted March 13, 2011 There's no such method as "link" in a <form> tag. It's either "get" or "post" I would change <?php echo "<form action=\"editevent.php?eventid=".$row['eventid']."\" method=\"link\"><INPUT TYPE=\"submit\" VALUE=\"Edit\"></form>\n"; echo "</td><td>"; echo "<form action=\"delete_ac.php?eventid=".$row['eventid']."\" method=\"link\"><INPUT TYPE=\"submit\" VALUE=\"Delete\"></form>\n"; ?> to <?php echo "<form action='editevent.php?eventid={$row['eventid']}' method='get'><INPUT TYPE='submit' VALUE='Edit'></form>\n"; echo "</td><td>"; echo "<form action='delete_ac.php?eventid={$row['eventid']}' method='get'><INPUT TYPE='submit' VALUE='Delete'></form>\n"; ?> If this isn't what you want, please explain what you want better. Ken Quote Link to comment Share on other sites More sharing options...
searls03 Posted March 13, 2011 Author Share Posted March 13, 2011 I gave you entire source so you could see page source and and the PHP source..........since php is hidden in a view source. <!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"><!-- InstanceBegin template="/Templates/template2.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Untitled Document</title> <!-- InstanceEndEditable --> <style type="text/css"> #apDiv1 { position:absolute; left:33px; top:320px; width:252px; height:48px; z-index:1; } #apDiv2 { position:absolute; left:33px; top:361px; width:254px; height:46px; z-index:2; } #apDiv3 { position:absolute; left:33px; top:525px; width:256px; height:43px; z-index:3; } #apDiv4 { position:absolute; left:33px; top:402px; width:250px; height:48px; z-index:4; } #apDiv5 { position:absolute; left:106px; top:616px; width:263px; height:255px; z-index:5; } #apDiv6 { position:absolute; left:323px; top:200px; width:898px; height:530px; z-index:5; } #apDiv7 { position:absolute; left:33px; top:443px; width:266px; height:42px; z-index:6; } #apDiv8 { position:absolute; left:111px; top:500px; width:125px; height:37px; z-index:7; } #apDiv8 strong { font-size: 24px; } #apDiv9 { position:absolute; left:33px; top:408px; width:267px; height:49px; z-index:8; } #apDiv10 { position:absolute; left:33px; top:449px; width:242px; height:23px; z-index:9; } #apDiv8 a { color: #000; } #apDiv11 { position:absolute; left:101px; top:490px; width:168px; height:42px; z-index:10; font-size: 24px; font-weight: bold; } #apDiv11 a { color: #000; } #apDiv12 { position:absolute; left:33px; top:210px; width:205px; height:135px; z-index:11; } #apDiv12 { text-align: center; } #apDiv13 { position:absolute; left:33px; top:320px; width:258px; height:47px; z-index:12; } #apDiv { position:absolute; left:33px; top:484px; width:225px; height:35px; z-index:11; } #apDiv14 { position:absolute; left:33px; top:566px; width:298px; height:51px; z-index:12; } #apDiv15 { position:absolute; left:101px; top:611px; width:168px; height:42px; z-index:10; font-size: 24px; font-weight: bold; } #apDiv5 a { font-size: 24px; color: #000; font-weight: bold; } </style> <script type="text/javascript"> function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } </script> <!-- InstanceBeginEditable name="head" --> <style type="text/css"> #apDiv6 form table tr th input { text-align: right; } .jfekjfe { text-align: right; } .adfd { font-weight: bold; } #apDiv6 form table tr td { font-weight: bold; } </style><!-- InstanceEndEditable --> <!-- InstanceParam name="id" type="text" value="apDiv6" --> </head> <body onload="MM_preloadImages('button/myprofile2.png','button/pictures2.png','button/projects1.png','button/news2.png','button/eventmanager2.png','button/membermanager2.png','button/newsmanager2.png')"> <div id="apDiv2"><a href="register.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','button/register2.png',1)"><img src="button/register1.png" name="Image3" width="235" height="50" border="0" id="Image3" /></a></div> <div id="apDiv4"><a href="projects.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image4','','button/projects2.png',1)"><img src="button/projects1.png" name="Image4" width="235" height="50" border="0" id="Image4" /></a></div> <div id="apDiv11"></div> <div id="apDiv12">Admin <p>Aaron Searls</p> <p>Troop 78</p> </div> <div id="apDiv13"><a href="myprofile.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','button/myprofile2.png',1)"><img src="button/myprofile1.png" name="Image5" width="235" height="50" border="0" id="Image5" /></a></div> <div id="apDiv5"><a href="../logout.php">Logout</a></div> </a> </div> <div id="apDiv6"><!-- InstanceBeginEditable name="EditRegion3" --><h1>Search Events</h1> <p><a href="addevent.php">Add Event</a></p> <form method="post" action="eventmanager.php"> <input type="hidden" name="submitted" value="true" ?/> <table width="896" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="127" bgcolor="#F7E496" class="adfd" scope="col">Property</td> <td width="181" bgcolor="#F7E496" scope="col">Value</td> <td width="588" bgcolor="#F7E496" scope="col"> </td> </tr> <tr> <td bgcolor="#F7E496"><select name="category"> <option value="event">Event Name</option> <option value="date">Date</option> <option value="price">Price</option> <option value="location">Location</option> </select></td> <td bgcolor="#F7E496"><input type="text" name ="criteria" /></td> <td bgcolor="#F7E496"><input type="submit" /></td> </tr> <tr> <td bgcolor="#F7E496"> </td> <td bgcolor="#F7E496"> </td> <td bgcolor="#F7E496"> </td> </tr> <tr> <td bgcolor="#F7E496"> </td> <td bgcolor="#F7E496"> </td> <td bgcolor="#F7E496"> </td> </tr> </table> </form><form action="eventred.php" method="post"> <table width="897" border="0" cellspacing="2" cellpadding="2"> <tr> <th width="356" class="jfekjfe" scope="col"><input name="submit" type="submit" value="Add Event" /></th> </tr> </table> </form> 1 results found<table width="896" border="0" cellspacing="0" cellpadding="0"><tr bgcolor="#F7E496"><td bgcolor="#F7E496"><strong>Event Name</strong></td> <td bgcolor="#F7E496"><strong>Date</strong></td> <td bgcolor="#F7E496"><strong>Price</strong></td> <td bgcolor="#F7E496"><strong>Location</strong></td><td bgclor="#F7E496"></td></tr><tr><td><a href="editevent.php?eventid=3">Hello</a></td><td></td><td></td><td>my house</td><td><form action="editevent.php?eventid=3" method="link"><INPUT TYPE="submit" VALUE="Edit"></form> </td><td><form action="delete_ac.php?eventid=3" method="link"><INPUT TYPE="submit" VALUE="Delete"></form> </td></tr></table><!-- InstanceEndEditable --></div> <div id="apDiv7"><a href="news.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image6','','button/news2.png',1)"><img src="button/news1.png" name="Image6" width="235" height="50" border="0" id="Image6" /></a></div> <div id="apDiv"> <a href="../search1.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image7','','../button/membermanager2.png',1)"><img src="../button/membermanager1.png" name="Image7" width="235" height="50" border="0" id="Image7" /></a></div> <div id="apDiv3"><a href="../addevent.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image8','','../button/eventmanager2.png',1)"><img src="../button/eventmanager1.png" name="Image8" width="235" height="50" border="0" id="Image8" /></a></div> <div id="apDiv14"><a href="../addart.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image9','','../button/newsmanager2.png',1)"><img src="../button/newsmanager1.png" name="Image9" width="234" height="50" border="0" id="Image9" /></a></div> <img name="boyscout" src="buttons/boyscout.jpg" width="1180" height="700" border="0" id="boyscout" alt="" /> </body> <!-- InstanceEnd --></html> <!-- www.000webhost.com Analytics Code --> <script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script> <noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript> <!-- End Of Analytics Code --> Quote Link to comment Share on other sites More sharing options...
searls03 Posted March 13, 2011 Author Share Posted March 13, 2011 ken, this is basically what I want, but it is still doing the same thing. it doesn't add on anything after editevent.php or delete_ac.php Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted March 13, 2011 Share Posted March 13, 2011 The show source output show that the eventid is being added: <form action="editevent.php?eventid=3" method="link"><INPUT TYPE="submit" VALUE="Edit"></form> <form action="delete_ac.php?eventid=3" method="link"><INPUT TYPE="submit" VALUE="Delete"></form> Why do you think it's not working? Ken Quote Link to comment Share on other sites More sharing options...
searls03 Posted March 13, 2011 Author Share Posted March 13, 2011 I have attatched a picture of where it is going and the error I am getting. [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
sasa Posted March 13, 2011 Share Posted March 13, 2011 look http://www.w3schools.com/tags/att_form_method.asp Quote Link to comment Share on other sites More sharing options...
searls03 Posted March 13, 2011 Author Share Posted March 13, 2011 I think that is what I want, but is there a way to make it so the form action is the link instead of another file? Quote Link to comment Share on other sites More sharing options...
sasa Posted March 13, 2011 Share Posted March 13, 2011 change method atribute to get Quote Link to comment Share on other sites More sharing options...
searls03 Posted March 13, 2011 Author Share Posted March 13, 2011 here is what i have been advised to use......... it is still not working, it is inside php tags echo "<form action='editevent.php?eventid={$row['eventid']}' method='get'><INPUT TYPE='submit' VALUE='Edit'></form>\n"; Quote Link to comment Share on other sites More sharing options...
sasa Posted March 13, 2011 Share Posted March 13, 2011 try in this way echo "<form action='editevent.php' method='get'><input type='hidden' name='eventid' value='{$row['eventid']}'><INPUT TYPE='submit' name='submit' VALUE='Edit'></form>\n"; Quote Link to comment Share on other sites More sharing options...
trinaryoc Posted March 13, 2011 Share Posted March 13, 2011 try in this way echo "<form action='editevent.php' method='get'><input type='hidden' name='eventid' value='{$row['eventid']}'><INPUT TYPE='submit' name='submit' VALUE='Edit'></form>\n"; Thats exactly what i was thinking. But to be honest... why dont you just create a button looking [a] in CSS... obviousily you're only doing this to get the button look.... you could also just create a button and add an onClick() to it. That would be my first choice. ether way you dont need to create a FORM. echo "<input type=button onClick=\"location.href='editevent.php?eventid=".$row['eventid']."'\" value='Edit'>"; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.