Jump to content

testimony page


sladepowers

Recommended Posts

hello,

i need a snippet to put into my php script that allow users to make a comment

and on submit that comment is displayed in the browser for all the world to see.

it's actually a testimony page for a local church i am involeved with.

 

if there is anyone who can point me in the right direction that would be great.

Thank you.

Link to comment
https://forums.phpfreaks.com/topic/221144-testimony-page/
Share on other sites

thanks for the help. the point is i don't know how to proceed after i've created the form

in dw cs4. i think i only need a php snippet for the text area to post the data for others

to see. here is the bit of script (testify.php) that i have which is actually nothing much at all:

 

<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_babiesnmovies = "xxx";
$database_babiesnmovies = "xxx";
$username_babiesnmovies = "xxx";
$password_babiesnmovies = "xxx";
$con = mysql_pconnect($hostname_xxx, $username_xxx, $password_xxx) or trigger_error(mysql_error(),E_USER_ERROR); 



mysql_select_db("db337879506", $con);
	 $sql=

mysql_query($sql, $con) or die ("<br>Query string: $sql<br>Produced error: " . mysql_error() . '<br>');

?>

 

below is the relevant html:

 

    <h1>Prayer & Testimony Room</h1>

    <p>In the book of Acts the early Christians met in the upper room for the  passover. There they prayed and soon the Holy Spirit, The Comforter, fell upon the congregation. It is here that Impacting A Generation receives the prayers of the faithful believer.</p>

    <p> As a man chosen by God and the leader of Impacting A Generation, shown favor by God, Bishop Sneed is ordained to receive your prayers and interceede to the Father on your behalf. Below you may submit your prayer request or leave a testimony.</p>

    <p> </p>

    <div id="Testify">

      <div align="right">

        <h4 align="left">Testimony is a way to praise God for what he has done in your life. It also allows other believers to seek God's unchanging hand as he works in the life of others. </h4>

        <h3 align="center"> </h3>

  <p align="center"><img src="holyholypraise.jpg" width="296" height="202" align="middle" /></p>

  <p align="center"> </p>

  <h4 align="justify">"And they overcame him by the blood of the lamb, and by the word of their testimony; and they loved not their lives unto the death." Revelations 12:11</h4>

  <p align="center"> </p>

  <h4 align="left">Testify to God's goodness and grace. Share your testimony and impact a generation. </h4>

        <form id="testify" name="testify" method="post" action="testify.php">

          <h4>

            <textarea name="testimony" id="testimony" cols="45" rows="5"></textarea>

          </h4>

        </form>

        <p>

          <input type="submit" name="button2" id="button2" value="Testify Now" />

        </p>

  </div>

    </div>

 

i've also included a screenshot of the html file in design mode.

 

We need help getting the testimony that is input by the user

to show in the browser so other members can read it and add

their own testimony for others to read.

 

We Thank you so much.

 

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/221144-testimony-page/#findComment-1145232
Share on other sites

hello?

quick question :confused:

where should this script go,  into the the .html file or

as a stand alone .php file?

 

<!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">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title>

</head>

 

<body>

<?php
$page_id = "1"; 
include("comments/comments_show.php");
include("comments/comments_form.php");
?>

 

</body>

</html>

 

 

any assistance is most appreciated. thank you.

 

Link to comment
https://forums.phpfreaks.com/topic/221144-testimony-page/#findComment-1146847
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.