The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
data base php error
Well I'm trying to make a page that would allow my users to send links. I have a vb page with the form but the proplem is when you hit summit it saves the data but doesn't include in the data the name, url, and description (felds in the form). The code for the php is:
PHP Code:
HTML Code:
<html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link href="../../main.css" rel="stylesheet" type="text/css"> </head> <body> $head_2 $headinclude <div align="left"><br> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><a href="index.php">Home</a>><a href="/Cool%20stuff.php"><strong>Cool stuff</strong></a></td> </tr> </table> </div> <div align="center"> <table width="933" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="25%" valign="top"> $toolbar</td> <td width="75%" valign="top" background="../../Images/content_bg.gif"><div align="center"><img src="../../Images/header.jpg" width="747" height="102"><br> <font size="+5"><span class="NewsTitle"><strong><u><font size="+3">Add a link!<br> </font></u></strong></span></font> <table width="598" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="598" height="80" valign="top" class="NewsTitle"> <form name="form1" method="post" action="test.php?do=save"> <table width="598" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="598" class="NewsTitle">Name: <input type="text" name="name"></td> </tr> <tr> <td width="598" class="NewsTitle">Url: <input name="url" type="text" id="url"></td> </tr> <tr> <td valign="top" class="NewsTitle">Description:<br> <textarea name="description" id="description"></textarea> </td> </tr> <tr> <td class="NewsTitle"><input type="submit" name="Submit" value="Add Link!"> <input type="reset" name="Submit2" value="Reset"></td> </tr> </table> </form></td> </tr> </table> <font size="+5"><span class="NewsTitle"><strong><u><font size="+3"> </font></u></strong></span></font> <br> <br> </div></td> </tr> <tr> <td> </td> <td valign="top"><img src="../../Images/content_bottom.jpg" width="748" height="21"></td> </tr> </table> <br> $footer<br> </div> </body> </html> |
#2
|
|||
|
|||
HTML Code:
<form name="form1" method="post" action="test.php?do=save">
HTML Code:
<form name="form1" method="post" action="test.php"> <input type="hidden" name="do" value="save" /> PHP Code:
PHP Code:
|
#3
|
|||
|
|||
thanks, I'm testing it now!
EDIT: It works thanks again |
#4
|
|||
|
|||
this was working fie but I have the idea auto go up so how do I get rid of the id.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|