[PHP] Named anchors, POST failure

2004-07-29 Thread Jason
PHP 4.3.4
MySQL 4.0.2
Apache 2.0.48
RedHat 9.0
I have a form that post some data to a DB. After the post, I send it 
back to another page with a named anchor like this:

a name=commentsComments/a
By way of a URL that looks like this:
http://www.domain.com/index.php?mode=viewid=100#comments
or
http://www.domain.com/index.php?mode=viewid=100#comments
Using Mozilla Firefox .08, .09, Netscape 5+, and Mozilla 1.7 this will 
show a blank page. If I use IE, I notice a longer pause since adding the 
named anchor, but it will still work.

Any ideas about PHP having issues passing a named anchor?
Thank You.
- Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Named anchors, POST failure

2004-07-29 Thread Jay Blanchard
[snip]
I have a form that post some data to a DB. After the post, I send it 
back to another page with a named anchor like this:

a name=commentsComments/a

By way of a URL that looks like this:

http://www.domain.com/index.php?mode=viewid=100#comments
or
http://www.domain.com/index.php?mode=viewid=100#comments

Using Mozilla Firefox .08, .09, Netscape 5+, and Mozilla 1.7 this will 
show a blank page. If I use IE, I notice a longer pause since adding the

named anchor, but it will still work.

Any ideas about PHP having issues passing a named anchor?
[/snip]

Can we see some code?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Named anchors, POST failure

2004-07-29 Thread Jason
Sure.
This is my function for posting a comment via the form I mentioned 
previously:

[code]
case post_comment:
// SQL to insert new psot into DB //
$sql = INSERT INTO table(value1, value2, value3)
VALUES (' . $_POST[value1] . ',
' . $_POST[value2] . ',
' . $_POST[value3] . ');
$result = mysql_query($sql)
or die (inserting_values:.mysql_error());
// Grab the ID so we can refer to it later //
$id = mysql_insert_id();
// Redirect back to comments page //
echoscriptwindow.location.href='index.php?mode=viewid=$id#comments';/script;
break;
[/code]
- Jason
Jay Blanchard wrote:
[snip]
I have a form that post some data to a DB. After the post, I send it 
back to another page with a named anchor like this:

a name=commentsComments/a
By way of a URL that looks like this:
http://www.domain.com/index.php?mode=viewid=100#comments
or
http://www.domain.com/index.php?mode=viewid=100#comments
Using Mozilla Firefox .08, .09, Netscape 5+, and Mozilla 1.7 this will 
show a blank page. If I use IE, I notice a longer pause since adding the

named anchor, but it will still work.
Any ideas about PHP having issues passing a named anchor?
[/snip]
Can we see some code?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Named anchors, POST failure

2004-07-29 Thread Jay Blanchard
[snip]
Sure.

This is my function for posting a comment via the form I mentioned 
previously:

[code]
case post_comment:

// SQL to insert new psot into DB //
$sql = INSERT INTO table(value1, value2, value3)
VALUES (' . $_POST[value1] . ',
' . $_POST[value2] . ',
' . $_POST[value3] . ');

$result = mysql_query($sql)
or die (inserting_values:.mysql_error());

// Grab the ID so we can refer to it later //
$id = mysql_insert_id();

// Redirect back to comments page //

echoscriptwindow.location.href='index.php?mode=viewid=$id#comments'
;/script;

break;
[/code]
[/snip]

When you redirect you have to pull the comment from the database for it
to display. Are you doing that?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php