| | |
results to form field
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Oct 2007
Posts: 3
Reputation:
Solved Threads: 0
Hello everyone. I am trying to modify a script I have been working with but have no true knowledge of PHP. Currently the script creates an http post and upon successful sending it opens a new web page and posts a message that reads "Sending results: OK". I would like to have this message show up in a form field in the original page as opposed to opening a new page. Can someone please help me to do this? I would be very appreciative of any assistance I can get. A working version of this can be tried at http://www.coffeebuzz.net/sms/gm/
•
•
Join Date: Oct 2007
Posts: 3
Reputation:
Solved Threads: 0
•
•
•
•
change $_post to $_request ....
$results = $mysms->send($_POST['to'],$_POST['from'],$message);
and add if ... else
if true ( header('location send.php?Action=OK');
<?php
if ( $_request['Action'] == 'OK' )
{
print "msg sent";
}
else
{
print "bla bla";
}
BTW, fantastic signature in your post.
u ve form field as "Customer's Mobile Number" named as "to"
when you post this to send.php
add there
$_request['to'] instead post as you did in ur example.
if you give more details i can help u better.
PS: thanks for that. I love my signature
when you post this to send.php
add there
$_request['to'] instead post as you did in ur example.
if you give more details i can help u better.
PS: thanks for that. I love my signature
Last edited by fatihpiristine; Nov 1st, 2007 at 12:16 pm.
Do a favour, leave me alone
![]() |
Similar Threads
- FILTER QUERY results on a FORM? (Visual Basic 4 / 5 / 6)
- Don't display an empty form field? (PHP)
- HELP: created dreamweaver form, but how do i get results from form? (PHP)
- Help with asp form will not display contact information (ASP)
- How to hyperlink mysql search results? (MySQL)
- Showing results of a form in new window (HTML and CSS)
Other Threads in the PHP Forum
- Previous Thread: Export RSS 1.0 or 2.0 feeds to an array
- Next Thread: MySQL require_once stopping script workin?
| Thread Tools | Search this Thread |
apache api array beginner binary body broken buttons cakephp checkbox class cms code cron curl database date date/time display dynamic ebooks echo email error file files folder form forms function functions global google href htaccess html image include insert ip javascript joomla limit link list login mail mediawiki menu mlm msqli_multi_query multiple mycodeisbad mysql number oop parameter paypal pdf php phpincludeissue problem query radio random recourse recursion regex remote script search seo server sessions sms source sp space speed sql static subdomain syntax system table tag tutorial update upload url validator variable vbulletin video web webdesign white wordpress xml youtube





