created pages from parsing

A

Anonymous

Guest
when u submit a form through parsing does the script create the page
or do you make the pages ur self?
 
PHP doesn't make anything itself. Everything that's there, you have to create.

When you make a form, you specify what page it submits to, in the "action" attribute, e.g. <form action="script.php" method="GET" />. It's up to you to make sure that page exists.

It's fairly common, though, to make a script submit to itself ($_SERVER['PHP_SELF']).
 
thanks.


mmmm


but when you put in the code for the table in the parsed results
do you have to make that too?
 
What table? What are you parsing? What are you talking about?
 
It's fairly common, though, to make a script submit to itself ($_SERVER['PHP_SELF'])

This method should be avoided-what happens if you include the form page from another page? I'll tell you, the $_SERVER['PHP_SELF'] is then set to the page including the form. IF you want to avoid this, basename(__file__) should be used
 
Dabear said:
the $_SERVER['PHP_SELF'] is then set to the page including the form

But often you do want to submit to form to the page that's including the form, not the included page itself.
 
I was talking about something like this


Code:
//Check each of the URL
while ($row = mysql_fetch_object ($query_result)) {
    $check = $check_url ($row->url);
	echo '<tr><td align="left">' . $row->Username . '</td><td align="left">' . $row->Dance Points . '</td><td align="left">
	' . $row->Perfect percentile . '</td>
}
	?>
	
	</table>
 
could you use the CreatePage() function for that instead of making all of those pages.
 
CHUBBYCAT said:
could you use the CreatePage() function for that instead of making all of those pages.

Yes. Could do nearly anything you want.
 
Back
Top