User Profile
Collapse
-
Joseph Cobham replied to Require user to type an specific word in form in order to get form submitted?in PHPgive me your full source code and how you implemented the script let me find out why there is no error message -
Joseph Cobham replied to Require user to type an specific word in form in order to get form submitted?in PHPmay be this may work for you
the html
Code:<div class=sub_content"><?php echo $submitted_content; ?></div
Code:.sub_content { overflow: scroll; max-width: specify the width you want here eg 500px; max-height: specify the height you want here eg 350px; }
Leave a comment:
-
Joseph Cobham replied to Require user to type an specific word in form in order to get form submitted?in PHPto insert a scroll bar using php?...if yes i don't think that's necessary insert your scroll bar using html and css. is the code working fine?Leave a comment:
-
Joseph Cobham replied to Require user to type an specific word in form in order to get form submitted?in PHPi hope this should help you
if not let me know
Code:<?php $word_a = "<html>"; $word_b = "</html>"; $main = $_POST['variable_name']; #the main varible will be submitted by your form. Change the variable_name for the real name of your variable on the form $errors = array(); #this will hold any error messages if found
Leave a comment:
-
Joseph Cobham replied to Require user to type an specific word in form in order to get form submitted?in PHPi hope this should help you
if not let me know
Code:<?php $word_a = "<html>"; $word_b = "</html>"; $main = $_POST['variable_name']; #the main varible will be submitted by your form. Change the variable_name for the real name of your variable on the form $errors = array(); #this will hold any error messages if found
Leave a comment:
-
-
what error do you get?
is it connection to host is failed or the second one database name in not available.
ReplyLeave a comment:
-
why dont you store the images in a directory and save their locations or urls in a simple varchar mysql table i think this will help reduce a lot of work for you.
As for the script i have it already do you need?Leave a comment:
-
i dont understand what you want to do....your question is not understandable. .please expanciateLeave a comment:
-
Joseph Cobham replied to Require user to type an specific word in form in order to get form submitted?in PHPi dont realy understand your question can you expanciate on what you want...are you trying to search for the occurence of <html> in the submitted string?Leave a comment:
-
why don you try some thing of this nature it works perfectly for me
Code:$query = "INSERT into `table` (`message`,`title`,`newdate`) VALUES ('$message','$title', CURDATE())"; mysql_query($query,$connection) or die("Insertion Failed:" . mysql_error()); $newest_id = mysql_insert_id($connection);
Leave a comment:
-
How to check for double occurence of a string and delete one
Hello...
I woulk like to know if ther is any php pre designed function that checks a string and searches through it to there is one or more occurence of a phrase or another string and deletes all the other ones and leave only one occurency of the string or phrase -
Hey thank you soooooooooooooo oooooooooo much i found that very helpful
I appreciate it....Leave a comment:
-
okay i tried file_get_conten t its only displaying the body part of the html code. I would like it to show the source code too including the scripts and head tags. heres my sample php code
Code:<?php $t = file_get_contents('mypage.html'); ?> <form> <textarea><?php echo html_entity_decode($t); ?></textarea> <input type="submit" Value="submit" />
Leave a comment:
-
Thank you very much for the snippet but how ever i am a little confused on how to go about this.
Example i have a page called test.php on the same diretory as my current php page, i would like to output it in a texteditor and when i edit the outputed content and submit the form how do i write my php code to save the new file using the same mane as test.php in the same directory. thank you very much....Leave a comment:
-
How to open and edit a file on the server
Hello all
I would love to know if any body has a knowledge of opening a file like a html or a css file on the server and edit the file, after editing, perform a save on the file.
Example like in joomla where one can open the html pages in a textbox and edit the file and save the file again.
I would love to know how this could be done in php
Any help will realy be appreciated. -
How to generate and save a html page on the server
Hello every one,
I am currently having problems with a php script
i want to generate a html page and store it on the server.
the page content will be gotten from a database query and the query result will be inputed in the generated page.
Any Help Please... -
you could use jquery to execute the php script and return values to a named div for example
the html code
Code:Bla Bla Bla Title <br /> <div style="width:950px"> <div style="float:left; width:450px"> Your List of Book here <div id="dialog2" class="window"> <form method="post" action="javascript: editBook();">
Leave a comment:
-
wampp is for development purposes...as a web developer wampp or xampp does not send mail to external servers they only relay mail to localhost and not to server on the internet.
If you want to send mail using a mail client i suggest you get Microsoft outlook or EudoraLeave a comment:
No activity results to display
Show More
Leave a comment: