Hi all,
I am setting up a "contact us" form where users basically enter some fields to send an email to the admin of the site. I would like an auto-responder to send a pre-written message to the person who filled out the form. Something like
Dear <insert name>
Thank you for your letter,
Admin
The tricky bit is that I would like the auto-responder to send a...
User Profile
Collapse
-
Worked like a charm!
Thanks... -
Getting error No. 1064... Deleting from multiple tables
Hi all,
Whats wrong with this syntax?
[CODE=mysql]
DELETE from fighterSponsor fs, sponsors s, imageData id where fs.sponsorId=s. sponsorId AND id.imageId=s.im ageId AND (s.imageId=81 OR s.imageId=82)[/CODE]
I keep getting errors:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where fs.sponsorId=s. sponsorId... -
-
Looking for a flexible Polling/Voting Script
Hi folks,
Just wondering if there are any php polling scripts that can be used for this type of situation.
My site allows people to set up their own Website with no coding whatsoever. I need a polling script that will allow users to choose write a question and some Answers (a poll) that is displayable on their Website.
Anyone know of a poll that allows this? Or maybe one that can be easily modified to... -
-
Anyway to pass variables down to an include()
Hey folks,
I was wondering if there is anyway to pass down a variable to an include.
For example I have 2 pages:
-page1.php
-page2.php
page1.php has a bunch of variables. page1.php also has:
include(page2.p hp);
My question is, can page2.php access any of the variables from page1.php? I tried using Sessions but no success.
your thoughts... -
Ok the solution that worked for me is.
Basically use this
curl_setopt($cu rl_handle,CURLO PT_POSTFIELDS,$ my_data);
And $my_data is basically an array with the Form inputs you want to "POST".
[code=php]
$my_data = array (
'index' => $indexOfZone,
'view' => '',
...Leave a comment:
-
Using curl_setopt to post to an encrypted Form
Please help,
I am having trouble using curl_setopt to post to an encrypted form.
The form values are
<form action=save_tex t.cgi method=post enctype=multipa rt/form-data>
I have isolated the problem to being the enctype. Anyway here is my code:
[code=php]
$startOfRecord. ="\n";
$startOfRecord. = $domainInserted .". IN ... -
Hey Breana,
It is a good idea to encrypt passwords otherwise anyone who has access to your Database (or whatever storage mechanism) can obtain passwords. PHP has a function called md5() which does one way encryption (you cannot decrypt it).
Have a look at this thread: <Link removed>
It should give you a good idea.
Cya
Al...Leave a comment:
-
-
All solved,
Just use cURL it has function to handle authentication etc.
Happy coding!
Al...Leave a comment:
-
Ok I have done some research and for anyone trying to load an external Form, you can use PHP function cURL or fopen.
http://curl.haxx.se/docs/manpage.html - Curl documentation
I just got to figure out how to get past the Webmin Authentication to post directly to the CGI forms.
Any ideas?
AlLeave a comment:
-
-
try
[code= c#]using (YOURSQLCONNECTI ON)
{
//Code that requires the connection
codecodecodecod ecode
} //<----At this point the connection automatically closes
[/code]Leave a comment:
-
-
Maybe you should store the values that are being jumbled into a Session object.
Session.add("na me", value)
Then on page_load check if its a postback and if it is, just change the .text property of whatever textbox is messing up:
theTextBox.text = Session("name") .toString()
Hope this helps with the encoding issues.
AlLeave a comment:
-
Interact with External CGI Forms (Local PHP Site to Webmin)
Hi I am new here,
I am having a hard time with this scenario. I am working on a PHP Website that needs to interact with a System Administration GUI called Webmin (http://www.webmin.com/) located in another server.
Basically the site I am working on allows users to register their domain Names (that they already own) and my PHP script needs to interact with Webmin in a Form by Form basis. The user should not see Webmin...
No activity results to display
Show More
Leave a comment: