Jump to content

Search the Community

Showing results for tags 'PHP'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 943 results

  1. I developped a simple html/php/mysql website. I would like to run it on my customer's server and I don't want to reveal my source code, so I am looking for a way to hide or encrypt it. I came across ionCube and other commercial solutions, but I need something cheaper (free) and less complex. And I also came across "eval gzinflate str_rot13 base64_decode", but it can be decoded easily, because it doesn't use a "secret key". My question is, how can I encrypt my html/php files with a key file that is placed on my own server. So if I remove it, the software on my customer's server' will not work anymore. Is there anything like that? Thanks.
  2. Hello internet. I have been looking around and I'm not sure I have found the method to use to complete this task. Here it is:- I want the user to send three numerical guesses to my database (this is no problem)- I will submit my own three numbers that will be the actual numbers the user will be trying to guess (this is no problem)- I want to send all those rows through a check function and then assign a value for each row based on how well they did guessing the number (this is where I am having an issue)- I would then like to echo back to the user all the guess totals - along with the names - in a table (this will not be a problem) I think I can handle all of this except how to write the function and send all the rows in mysql through that function and then assign a "total" value for each row based on how well then did guessing. Your help is appreciated.
  3. I am working on a website for my work but they will not give me a webserver. So basically I have to run it off a fileshare. This limits me to HTML, Javascript, and CSS formats to get anything done. I need to be able to accept data entered into a form and store it somewhere so it can later be queried for analysis in another website type format. Any suggestions? Somethings to keep in mind also so you know what I'm working with here. - older dell workstations running XP- IE7 is the only browser we are able to use on the work machines- No web server access or ability to pull in data from outside resources since the machines do not have internet access.
  4. Hello internet. I have been sending my site out to people to test out and mess around with and some feedback I am getting is that they are having pop-up blocker issues and even when they temporarily turn the pop-up blockers off they still do not get my echo's that I really need them to get. So - how do I send the echo right to the same webpage that the form is on?
  5. wernerz

    Suggestions

    I would like to create an interactive form that customers may choose their orders via drop down list/image rollover then are able to view the selected product/image in the adjacent div. After the customer selects which items they would like, they hit the email/submit button to send the product details to the company for the order, and also to have the e-mail formatted in plain text. Help would be appreciated by your suggestions on the best way to go about this from the "back-end" perspective. Would it be better to use javascript and php or do you think a flash form with javascript. Time is not a concern on this project.
  6. Hello Friends I have to visit a website which offers you Free Videos on various topics.Some Links I am posting here.AJAXhttp://learnerstv.com/Free-Computers-Video-lectures-ltv322-Page1.htmFundamentals of PHPhttp://learnerstv.com/Free-Computers-Video-lectures-ltv166-Page1.htmBasics of PHPhttp://learnerstv.com/Free-Computers-Video-lectures-ltv427-Page1.htm Regards,Er. Sumit Machra[+91-9414475695][http://brahmansh.in]
  7. Hey all! I'm running a script that downloads a file from a site. The client facing url looks something like this http://media.site.com/83jdks9dj?id=1 when I put that url into the web browser it gets resolved to a large url that actually then stream/downloads the media. I'm using wget to download then place the file into a directory on my site. But the issue is that wget needs the resolved url not the url that you see in the code. Is there any way in php to store the resolved url in a var? in theory something like this $src = 'http://media.site.com/83jdks9dj?id=1'; //unresolved url $srcResolved = resolve_url($src); thanks!
  8. I have this contact form and really ned help with my php file. What would i need in my SendContact.php file in order for this form to work?? Thanks <div id="left"><div id="contact_form"><font size="+2"><b>Contact us?</b></font><p><font size="-2">Please use the form below to send us a message.</p></font><form method="post" onsubmit="return sendContact();" action="sendContact.php"><p><label for="name" id="lname">Full name:</label><input type="text" class="text" name="name" id="name" onfocus="input_focus('name');" onblur="input_blur('name');" /></p> <p><label for="email" id="lemail">Email address:</label><input type="text" class="text" name="email" id="email" onfocus="input_focus('email');" onblur="input_blur('email');" /></p><div class="x"></div><p class="error" id="email-error">You must enter your email address.</p> <p><label for="category" id="lcategory">Category:</label><select name="category" id="category" onfocus="input_focus('category');" onblur="input_blur('category');"><option value="software">Website Related</option><option value="hardwae">Content Related</option><option value="consulting">Complaint Related</option></select></p> <p><label for="message" id="lmessage">Message:</label><textarea name="message" id="message" onfocus="input_focus('message');" onblur="input_blur('message');"></textarea></p><div class="x"></div> <div class="x"></div> <input type="submit" class="submit" name="send_contact" value="Send" /> </form> </div> <div id="message_sent" style="display:none;"><h1>Your message has been sent</h1><p>We'll contact you in a shortest possible time.</p><p>You can now <a href="index.html" class="read-more">go back</a> to home page.</p></div> </div> </body></html>
  9. AskSMBR

    Xampp Mysql

    Asalam-o-aliqum or Hello I am facing problem when connect MySQL database in XAMPP localhost if you know the answer plz replay Thanks. I have write "Asalam-o-aliqum" which Muslims says when meet someone. instead of hello.
  10. My php contact form wont send the emails to my account?This is my contact from page<table width="400" border="0" align="center" cellpadding="3" cellspacing="1"><tr><td><h2><strong>Contact Form </strong></h2></td></tr></table><table width="400" border="0" align="center" cellpadding="0" cellspacing="1"><tr><td><form name="form1" method="post" action="send_contact.php"><table width="100%" border="0" cellspacing="1" cellpadding="3"><tr><td width="16%">Subject</td><td width="2%">:</td><td width="82%"><input name="subject" type="text" id="subject" size="50"></td></tr><tr><td>Detail</td><td>:</td><td><textarea name="detail" cols="50" rows="4" id="detail"></textarea></td></tr><tr><td>Name</td><td>:</td><td><input name="name" type="text" id="name" size="50"></td></tr><tr><td>Email</td><td>:</td><td><input name="customer_mail" type="text" id="customer_mail" size="50"></td></tr><tr><td> </td><td> </td><td><input type="submit" name="Submit" value="Submit"> <input type="reset" name="Submit2" value="Reset"></td></tr></table></form></td></tr></table><p> </p></form>This is my php code for the contact form<?php// Contact subject$subject ="$subject"; // Details$message="$detail";// Mail of sender$mail_from="$customer_mail"; // From $header="from: $name <$mail_from>";// Enter your email address$to ='gareth.joynt@go.edgehill.ac.uk';$send_contact=mail($to,$subject,$messa…// Check, if message sent to your email // display message "We've recived your information"if($send_contact){echo "We've recived your contact information";}else {echo "ERROR";}?>Please help thanks
  11. Hello internet - what I am trying to do is that I have two different regular buttons (preview and submit) and I also have two functions I named checkit and checkit2 - but now I would like checkit to post different information than checkit2 when the forms are sent to m m_post_process_4.php to be processed. How do I accomplish this? My form text is:<form name=tourney action="m m_post_process_4.php" method="post" target="_blank">My button text is:<input type="button" name="Preview" value="Preview"; onclick="checkit();" /><input type="button" name="Submit" value="Submit"; onclick="checkit2();" />
  12. programAngel

    Simplexml

    if I have the following xml:<?xml version="1.0" encoding="utf-8" ?><NewDataSet> <office> <room /> </office> <office> <room></room> </office> </NewDataSet>if I am using simplexml to parse the file, how can I differentiate between the first case and the second?
  13. Hello internet. I would like to start off by saying that W3Schools forum and all you great programmers that respond to these topics is INVALUABLE!!! Thank you so much. Here is my problem... I currently have only one form for my site<form name=tourney action="m m_post_process_4.php" method="post" onSubmit="return checkit()" target="_blank"> When all the requirements have been met (through the checkit function) the form is sent to the PHP file for processing. However, I have two submit buttons and would like each button to process a different function - one for checkit and one for checkit2. This may seem odd because you may say combine the two functions into one function but the problem I am running into is that I cannot seem to get the element ID during a submit action. If I could I would combine the two functions and run comparisons to do all the work. However, the PHP output keeps telling me "Undefined1" for the ID value I am trying to compare. Any thoughts?
  14. Hi guys. I am glad I found this community because I desperately need some help. I am new at PHP so please bare with my ignorance I run a loop for my member section of my site that contains a form login at login.html, checklogin.php and forhandlerservice.php (the actual membersite)The form takes username and password and when the user submits the information it is send to a file called checklogin.php. In here the username and password is checked against my database.If the username and password is correct the user is redirected to forhandlerservice.php, otherwise the user is told that the username or password is wrong.This all works fine. What I want to do is to greet the user after he logs in. The greeting should be something like: Hello John (where the name changes depending on the login of course).As of now, using the code I have, I can only figure out how to register the username and password in my session, which then only allows me to print out one of these two variables.So my question is this:How do I register the remaining content in my database (I currently have: ID, username, password, realname); where the greeting should be associated with the realname.The code I am using now works fine but is limited to only printing out either the username or password. It looks like this:<?phpecho "Velkommen " . $myusername;?> I have attached the code for checklogin.php and the first lines of my forhandlerservice.php (the rest is just the basic site containing a lot of html) I really hope it makes sense as I desperately need this done.Thanks for your time and help Best,CyRus2273 checklogin.php firstlines.rtf
  15. Fmdpa

    Crazy Php/xml Problem

    I am absolutely stumped on this problem. I've been trying to solve it for hours and hours. The problem is that whenever I perform the following code, instead of appending this once like it should: <rating> <value>(1-5)</value> <ip>127.0.0.1</ip> <id>id</id></rating> It appends it 21 times! Every time! I even switched my code to using SimpleXML instead of DOMDocument and it still did it! When I dump the XML code onto the page, it only shows it appended once. I am thoroughly confused. Anyway, here's SermonRatings.php: <?phprequire_once 'global.php';class SermonRating { public function add($rating, $sermon) { $domDoc = new DOMDocument(); $domDoc->formatOutput = true; $doc = $domDoc->load('sermon_ratings.xml'); $root = $domDoc->getElementsByTagName('ratings')->item(0); $rating_node = $domDoc->createElement('rating'); $value = $domDoc->createElement('value'); $value->appendChild($domDoc->createTextNode($rating)); $ip = $domDoc->createElement('ip'); $ip->appendChild($domDoc->createTextNode($_SERVER['REMOTE_ADDR'])); $sermon_id = $domDoc->createElement('id'); $sermon_id->appendChild($domDoc->createTextNode(xmlentities($sermon))); // xmlentities() defined in global.php; it is not the problem because this was happening before I added the function $rating_node->appendChild($value); $rating_node->appendChild($ip); $rating_node->appendChild($sermon_id); $root->appendChild($rating_node); $saved = $domDoc->save('sermon_ratings.xml'); return $saved; } // ...other unrelated methods...} $sr = new SermonRating;echo $sr->add(1, 'sermon.wma'); And here's sermon_ratings.xml: <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE ratings [ <!ELEMENT ratings (rating*)> <!ELEMENT rating (value , ip , id)> <!ELEMENT value (#PCDATA)> <!ELEMENT ip (#PCDATA)> <!ELEMENT id (#PCDATA)>]><ratings> </ratings> After I visit sermonRatings.php and those last two lines of code trigger the method execution and the file is modified and saved, there are 21 child <rating> elements in the file. I'm totally confused.
  16. I have many buttons (not radio or checkbox but just simple buttons) on my page where the values were populated by an "onclick" command. How do I get PHP to process all that data and list it out.
  17. birbal

    Php Gtk2 Installation

    I am trying to install php-gtk2 in my local server whihc run on xampp. reading from their website it seems php-gtk run beside with php. It dont run with php. Will it create any trouble to run and work with both from the same server? I have not any prior experiance with gtk so i am not sure how will it work. I can experiment with installation but from this moment i dont want to affect php installation which i am already runing. Any advice regarding this and regarding gtk will be appriciated!thanks!
  18. Is it possible to embed a word document into a html? I have web server host locally like http://localhost, I was able to embed .pdf but not knowing how to embed word document. I've try iframe but instead of showing on the web browser, it prompts the web surfer to save or open and that's not the solution I was look for. Can someone point me to the right information? thank you..
  19. So I am at the part of my website where I need to decide how to display individual products being sold on the website. I want to display the picture, a description, and link it to a paypal account where the individual product can be sold. But I am unsure how to do it. I could do it with HTML easily, but I am wondering if I should use PHP or another programming langauge so I dont have to create 1 page per product, so I dont have to create 50 additional pages. Im thinking that I would have to create a template page using HTML or PHP and then use the programming language to fill in the description and images according to which link (product) they click. How would I do this exactly? I dont have a ton of experience with PHP, am I way over my head? And would PHP would well with PayPal? again, would that be a huge project?
  20. Hi, I am busy testing out a lightbox form that I'm working on and I've got all to work except the "success" or "thank you" page.Basically I want the user to fill in the online form and when the they are click 'submit', the "thank you" message or page resolves in the same lightbox that the form was in. Go to www.testing123.co.za/test.htm and click on that link you see saying "AJAX SuperBox".The lightbox is opening up an HTML page within in the test.htm page (basically acting like an iFrame?).When I click submit, the page resolves to the success.htm page (which it should) but not in the lightbox frame. I don't want visitors to leave the test.htm page. My headers at the bottom of my process php form shows as: '; $headers = "From: $from\r\nBCC:{$bcc}\r\n"; $headers .= "Content-type: text/html\r\n"; $success = mail($to, $subject, $sBodyNew, $headers); header('Location: http://www.testing123.co.za/success.htm'); ?> I assume the Location url above needs code added to it so that it works within the lightbox? Or is there an easier way to do this? Thanks guys!
  21. az1987

    Advice Need

    Hey all,I need some advice.I'm currently in my final year at uni, and my final year project looks interesting too me.Anyways in a nut shell i have to connect a radio receiver to a web server. And then allow the client to scan frequencies or choose a frequence on a web page.Also i have to have create a spectrum plot for each frequency strength.I was just wondering is this at all possible with python or is php or RoR better?
  22. i want to make it so that what you put in an HTML forum when sent will add to a separate HTML page with the input from the forum inserted into code. For example, on a forum in typeit.html you type "My Name" into the name text box and "This Is My Message" into the message box. You clock submit and it sends it to the PHP page which sends <b>My Name</b><br><p>This Is My message</p><br> to a separate HTML page called mytxt.htmlNote that was an example and what the names of pages and forums are above are different in reality.I already have a code to simple print the text as it is but i don't know how to make code with PHP.Here is the code that I have so far: in photo_main.html <form action="upload_file.php" method="post"enctype="multipart/form-data"><input type="file" name="file" id="file" /> <br />Title:<INPUT TYPE="text" NAME="fname"><br>Description:<INPUT TYPE="text" NAME="age"><br>Photo Album:<INPUT TYPE="text" NAME="alb"><br><input type="submit" name="submit" value="Submit" /></form> in upload_file.php <?php if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br />"; } else { echo "Upload: " . $_FILES["file"]["name"] . "<br />"; echo "Type: " . $_FILES["file"]["type"] . "<br />"; echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />"; echo "Temp file: " . $_FILES["file"]["tmp_name"] . "<br />"; if (file_exists("images/" . $_FILES["file"]["name"])) { echo $_FILES["file"]["name"] . " already exists. "; } else { move_uploaded_file($_FILES["file"]["tmp_name"], "images/" . $_FILES["file"]["name"]); echo "Stored in: " . "images/" . $_FILES["file"]["name"]; $a_str = array($_POST["fname"],$_POST["age"],$_POST["alb"],$_FILES["file"]["name"]); $contents = implode(PHP_EOL, $a_str); $contents .= PHP_EOL . PHP_EOL; file_put_contents("photos.txt", $contents, FILE_APPEND); print("|$contents|"); } }?> I want to make it so that instead of text going to a txt file I want code going to an HTML file so that i don't have to keep manually putting in uploaded photos. I am going to use an iframe to put in the HTML to a page. If there is a better way than an iframe that would be great too. I hope I was not confusing.
  23. Hi guysI am working on something tricky about display an image under the date text inside the cell in jquery calendarI don't mind about the plug-in of Jquery, My question is how we can assign a certain data for a cell date in the calendar assuming I have an array of values from the database and I want to assign each array element for a specific date? any idea?thanks in advance for any help
  24. Hey guys!I was wondering if someone would be kind enough to help me out. I am not really a programmer or savvy in that type of nature. I know HTML / CSS but really my experience is in the design field. I am using software called osDate.osDate allows you to give your site a title and meta tags from the admin interface, BUT... osDate doesn't support changing your title/meta tags for specific pages, this is a huge problem for me and the SEO of my site! Here's what I need and I'm hoping someone can help me out with. I want to know if someone could write me a quick tutorial or possibly show me how the code would work to do the following: IF we are on page 'page.php' then use 'THIS' as my title site. As an added bonus, I wonder would hard it would be to fetch 'THIS' from.. let's say a text file? or php file where i can define all the titles etc that get pulled into my title/meta tags? (the same theory would be applied in the meta tags/description) if anyone could gimme a hard, I'd greatly appreciate it! Thanks!
  25. Hello, I'm about to buy my first PHP code generator, I have already tested up a few, have my own opinion about it but wanted to discuss it a little bit first, anyone here uses/used? what you guys can tell me about it? I still testing then and will post some of my experience about it. Please comment!
×
×
  • Create New...