In message <[EMAIL PROTECTED]>, zanadoo88 <[EMAIL PROTECTED]>
writes
>The SUBMIT is <input type="image" src="button.bmp"/>
>Right now I am focusing on getting the text into the database. There
>are two issues getting in the way of that right now.
Missed that, I was just shutting down the computer on the way out <G>
>1-When I hit submit, when I have entered text into all of the
>fields, it still gives me an error message about not having anything
>in name, adline1 and adline2. This means that for some reason the
>information isnt going from the HTML form to the cleansend.php page.
I have a file which I call debug.php, which I include wherever I am
having data problems.
I suggest that you temporarily add these 3 lines to your second page.
echo "GET:<br>"; var_dump($_GET);
echo "<br>POST:<br>"; var_dump($_POST);
echo "<br>SESSION:<br>"; var_dump($_SESSION);
Then you will see if the data is arriving
>
>2-PHP wont write to MySQL databases anyway. I tried the bellow code
>alone in a browser & it failed to write anything to the database.
>How do I configure PHP to work with MySQL?
>
><?php
// Connect to database
>$link= mysql_connect ('localhost','root','google');
> mysql_select_db("PigeonPost");
>
// Define what the job is going to be
> $insert2="INSERT INTO main
> (time, adline1, adline2, city, zip)
> VALUES ('55','bob', '123','fake st','anytown','02144','Hi
>Mom!!' )";
>
// Close the link
> mysql_close($link);
>php?>
You didn't "do" the query, you just said what it was going to be. You
missed out something like
mysql_query ( $insert2 );
Also, the Close is superfluous, because it is closed automatically when
the server stops creating the page (not when the visitor stops reading
the page)
--
Pete Clark
My life in Spain
http://www.hotcosta.com/blog
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/